Author: duncan
Date: Thu Nov 15 08:28:48 2007
New Revision: 10132
Log:
When there are no matches IMDB will return no results
This stop a crash in this case
Modified:
branches/rel-1-7/freevo/src/util/fxdimdb.py
branches/rel-1/freevo/src/util/fxdimdb.py
Modified: branches/rel-1-7/freevo/src/util/fxdimdb.py
==============================================================================
--- branches/rel-1-7/freevo/src/util/fxdimdb.py (original)
+++ branches/rel-1-7/freevo/src/util/fxdimdb.py Thu Nov 15 08:28:48 2007
@@ -706,7 +706,7 @@
soup = BeautifulSoup(results.read(), convertEntities='xml')
except UnicodeDecodeError:
print "Unicode error; check that /usr/lib/python2.x/site.py has
the correct default encoding"
- pass
+ return (None, None, None)
# The parse tree can be now reduced by, everything outside this is not
required:
main = soup.find('div', {'id': 'tn15main'})
Modified: branches/rel-1/freevo/src/util/fxdimdb.py
==============================================================================
--- branches/rel-1/freevo/src/util/fxdimdb.py (original)
+++ branches/rel-1/freevo/src/util/fxdimdb.py Thu Nov 15 08:28:48 2007
@@ -706,7 +706,7 @@
soup = BeautifulSoup(results.read(), convertEntities='xml')
except UnicodeDecodeError:
print "Unicode error; check that /usr/lib/python2.x/site.py has
the correct default encoding"
- pass
+ return (None, None, None)
# The parse tree can be now reduced by, everything outside this is not
required:
main = soup.find('div', {'id': 'tn15main'})
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog