Skip to content

Commit 8d7a95a

Browse files
committed
#10 - Python
1 parent d1397b6 commit 8d7a95a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Roadmap/10 - EXCEPCIONES/python/mordevspt.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,8 @@ def ticketSale(name,age):
118118
except ValueError as ve:
119119
print(f"ValueError - Se ha producido un error [{str(ve)}]")
120120
except Exception as e:
121-
print(f"Exception - Se ha producido un error [{str(e)}]")
121+
print(f"Exception - Se ha producido un error [{str(e)}]")
122+
else:
123+
print("No se han producido errores")
124+
finally:
125+
print("El programa ha finalizado")

0 commit comments

Comments
 (0)