[livecoding] r145 committed - - filechanges/__init__.py: The event dispatching function now lets imp...

2 views
Skip to first unread message

livec...@googlecode.com

unread,
Mar 31, 2010, 5:17:16 AM3/31/10
to py-livecod...@googlegroups.com
Revision: 145
Author: richard.m.tew
Date: Wed Mar 31 02:16:42 2010
Log: - filechanges/__init__.py: The event dispatching function now lets
important exceptions like SystemExit and TaskletExit raise out, killing the
thread it is running in.
http://code.google.com/p/livecoding/source/detail?r=145

Modified:
/trunk/filechanges/__init__.py

=======================================
--- /trunk/filechanges/__init__.py Thu Feb 11 00:16:16 2010
+++ /trunk/filechanges/__init__.py Wed Mar 31 02:16:42 2010
@@ -53,7 +53,10 @@
def DispatchFileChange(self, filePath, added=False, changed=False,
deleted=False):
try:
self.callback(filePath, added=added, changed=changed,
deleted=deleted)
- except:
+ except Exception:
+ # Richard: I added Exception here so that TaskletExit would
raise and
+ # kill the thread. But I have a suspicion that I had these
being
+ # caught for a reason.
logger.exception("Problem executing callback")

def ShouldIgnorePathEntry(self, path):

Reply all
Reply to author
Forward
0 new messages