Skip to content

Commit

Permalink
Tratamento de erro durante a abertura do arquivo adicionado
Browse files Browse the repository at this point in the history
  • Loading branch information
Allber Fellype committed Dec 11, 2024
1 parent 658b586 commit afac6be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion desafio-11/JamesStewart-314/python/solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,7 @@ def print_biggest_seq(file_path: str, upper_limit: int = 10 ** 4) -> str:

if __name__ == '__main__':
file_path: str = os.path.join(os.path.dirname(__file__), "pi-1M.txt")
print_biggest_seq(file_path)
try:
print_biggest_seq(file_path)
except Exception as error:
print(error)

0 comments on commit afac6be

Please sign in to comment.