Author: dmeyer
Date: Sun Mar 11 10:07:13 2007
New Revision: 2540
Modified:
trunk/base/src/notifier/url.py
Log:
return url return code if not 200
Modified: trunk/base/src/notifier/url.py
==============================================================================
--- trunk/base/src/notifier/url.py (original)
+++ trunk/base/src/notifier/url.py Sun Mar 11 10:07:13 2007
@@ -79,7 +79,11 @@
"""
The real urllib2 calls in a thread.
"""
- fd = urllib2.urlopen(*self._args)
+ try:
+ fd = urllib2.urlopen(*self._args)
+ except urllib2.HTTPError, e:
+ # FIXME: how to handle this.
+ return e.code
self.signals['header'].emit(fd.info())
if not len(self.signals['data']) and not
len(self.signals['completed']):
# no callback connected, no need to read
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog