Author: dmeyer
Date: Fri Dec 29 13:20:28 2006
New Revision: 2300
Modified:
trunk/metadata/src/image/EXIF.py
Log:
prevent crash on bad maker note
Modified: trunk/metadata/src/image/EXIF.py
==============================================================================
--- trunk/metadata/src/image/EXIF.py (original)
+++ trunk/metadata/src/image/EXIF.py Fri Dec 29 13:20:28 2006
@@ -1049,8 +1049,11 @@
# Olympus
if make[:7] == 'OLYMPUS':
- self.dump_IFD(note.field_offset+8, 'MakerNote',
- dict=MAKERNOTE_OLYMPUS_TAGS)
+ try:
+ self.dump_IFD(note.field_offset+8, 'MakerNote',
+ dict=MAKERNOTE_OLYMPUS_TAGS)
+ except KeyError:
+ pass
return
# Casio
-------------------------------------------------------------------------
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