Reputation: 5226
try:
[code]
except Exception:
[something]
raise
pass
Above code snippet looks a bit weird, doesn't it? Am I missing something? Why is there a raise and a pass following it?
Upvotes: 0
Views: 73
Reputation: 16266
seems like initially it was just
except Exception:
pass
somebody just forgot to remove it after adding exception handling
Upvotes: 1
Reputation: 34698
Its a NOP. It does nothing. Nothing at all. No clue why they left it there, because it does nothing.
Upvotes: 2