1
0
mirror of https://github.com/gryf/pythonhelper.git synced 2025-12-18 12:00:27 +01:00

Added a FIXME for the 'except Exception'.

This commit is contained in:
cheater
2012-02-08 07:39:02 +01:00
committed by cheater
parent c9dc1f3ec0
commit fe86a19e35

View File

@@ -628,6 +628,13 @@ def findTag(bufferNumber, changedTick):
# handle possible exceptions {{{
except Exception:
# FIXME: wrap try/except blocks around single sources of exceptions
# ONLY. Break this try/except block into as many small ones as you
# need, and only catch classes of exceptions that you have encountered.
# Catching "Exception" is very, very bad style!
# To the author: why is this clause here? There's no git log for why you
# have added it. Can you please put in a comment of a specific situation
# where you have encountered exceptions?
# bury into the traceback {{{
ec, ei, tb = sys.exc_info()
while (tb != None):