in this snippet?
try:
0/0
except ZeroDivisionError:
raise ValueError('Foo')
except Exception as e:
print('Bar')
I'm don't see the point of the exception, since the program will be interrupted there, nor why would you need to have it at as e if you're not going to use it, but I believe you're just experimenting with this structure.
because you're raising a ValueError and interrupting the program there ¯\_(ツ)_/¯
Exactly, I'm just experimenting the structure to use in another way
Обсуждают сегодня