Copy and paste error

This commit is contained in:
Jason A. Donenfeld 2015-01-25 14:19:38 +01:00
parent 7d2528280b
commit 61aabc7ee2

View File

@ -147,7 +147,7 @@ class Photo(object):
decoded = TAGS.get(tag, tag) decoded = TAGS.get(tag, tag)
if isinstance(value, str) or isinstance(value, unicode): if isinstance(value, str) or isinstance(value, unicode):
value = value.strip().partition("\x00")[0] value = value.strip().partition("\x00")[0]
if (isinstance(decoded, str) or isinstance(value, unicode)) and decoded.startswith("DateTime"): if (isinstance(decoded, str) or isinstance(decoded, unicode)) and decoded.startswith("DateTime"):
try: try:
value = datetime.strptime(value, '%Y:%m:%d %H:%M:%S') value = datetime.strptime(value, '%Y:%m:%d %H:%M:%S')
except KeyboardInterrupt: except KeyboardInterrupt: