[flaxcode] r1329 committed - crawler.py: _debug ignores CrawlerError exceptions if silent

1 view
Skip to first unread message

codesite...@google.com

unread,
Jan 25, 2011, 6:10:24 AM1/25/11
to flax-c...@googlegroups.com
Revision: 1329
Author: banoffi
Date: Tue Jan 25 03:09:23 2011
Log: crawler.py: _debug ignores CrawlerError exceptions if silent
http://code.google.com/p/flaxcode/source/detail?r=1329

Added:
/trunk/flax/crawler/ChangeLog
Modified:
/trunk/flax/crawler/crawler.py

=======================================
--- /dev/null
+++ /trunk/flax/crawler/ChangeLog Tue Jan 25 03:09:23 2011
@@ -0,0 +1,3 @@
+Tue 25 Jan 2011 11:07:47 GMT Tom Mortimer <t...@flax.co.uk>
+
+ * crawler.py: _debug ignores CrawlerError exceptions if silent
=======================================
--- /trunk/flax/crawler/crawler.py Tue Jul 27 03:56:04 2010
+++ /trunk/flax/crawler/crawler.py Tue Jan 25 03:09:23 2011
@@ -564,7 +564,7 @@
details if called in the context of an 'except' clause.
"""
ty, e, tb = exc_info()
- if e is None and silent:
+ if (e is None or isinstance(e, CrawlerError)) and silent:
return
if ty is not None:
while tb.tb_next is not None:

Reply all
Reply to author
Forward
0 new messages