Browse Source

BF: python 2.4 and 2.5 compatibility -- no "except ... as ..." yet

pull/647/head
Yaroslav Halchenko 11 years ago
parent
commit
9cbb472478
  1. 2
      server/filterpyinotify.py

2
server/filterpyinotify.py

@ -211,6 +211,6 @@ class ProcessPyinotify(pyinotify.ProcessEvent):
def process_default(self, event): def process_default(self, event):
try: try:
self.__FileFilter.callback(event, origin='Default ') self.__FileFilter.callback(event, origin='Default ')
except Exception as e: except Exception, e:
logSys.error("Error in FilterPyinotify callback: %s", logSys.error("Error in FilterPyinotify callback: %s",
e, exc_info=logSys.getEffectiveLevel() <= logging.DEBUG) e, exc_info=logSys.getEffectiveLevel() <= logging.DEBUG)

Loading…
Cancel
Save