def EXIF(self): try: return EXIF.process_file(open(self.image.path, 'rb')) except: try: return EXIF.process_file(open(self.image.path, 'rb'), details=False) except: return {}
def EXIF(self): try: return EXIF.process_file(open(self.image.path, 'rb')) except Exception, e: print "EXIF EXP 1",str(e) try: return EXIF.process_file(open(self.image.path, 'rb'), details=False) except Exception, ee: print "EXIF EXP 2",str(ee) return {}