Author: dmeyer
Date: Wed Apr 18 17:44:50 2007
New Revision: 2635

Modified:
   trunk/beacon/src/server/parser.py

Log:
better imlib2 error handling

Modified: trunk/beacon/src/server/parser.py
==============================================================================
--- trunk/beacon/src/server/parser.py   (original)
+++ trunk/beacon/src/server/parser.py   Wed Apr 18 17:44:50 2007
@@ -208,7 +208,7 @@
                     produced_load = 2
                     img = 
kaa.imlib2.open_from_memory(metadata.get('thumbnail'))
                     t.set(img, thumbnail.NORMAL)
-                except Exception:
+                except (ValueError, IOError):
                     log.error('image thumbnail')
 
     else:
@@ -225,7 +225,7 @@
                 try:
                     produced_load = 2
                     t.image = 
kaa.imlib2.open_from_memory(metadata['thumbnail'])
-                except ValueError:
+                except (ValueError, IOError):
                     log.error('raw thumbnail')
 
         for ext in ('.jpg', '.png'):

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to