From 9cbb472478feca7eba33c8c00a7533036f87d3e7 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Sun, 16 Mar 2014 10:35:58 -0400 Subject: [PATCH] BF: python 2.4 and 2.5 compatibility -- no "except ... as ..." yet --- server/filterpyinotify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/filterpyinotify.py b/server/filterpyinotify.py index 42243552..d293b171 100644 --- a/server/filterpyinotify.py +++ b/server/filterpyinotify.py @@ -211,6 +211,6 @@ class ProcessPyinotify(pyinotify.ProcessEvent): def process_default(self, event): try: self.__FileFilter.callback(event, origin='Default ') - except Exception as e: + except Exception, e: logSys.error("Error in FilterPyinotify callback: %s", e, exc_info=logSys.getEffectiveLevel() <= logging.DEBUG)