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)
if isinstance(value, str) or isinstance(value, unicode):
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:
value = datetime.strptime(value, '%Y:%m:%d %H:%M:%S')
except KeyboardInterrupt: