We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scanning software doesn't care...
diff --git a/flickrmirrorer.py b/flickrmirrorer.py index ef9aa85..29df9a2 100755 --- a/flickrmirrorer.py +++ b/flickrmirrorer.py @@ -144,7 +144,11 @@ def get_photo_datetime(photo): datetime.datetime """ if photo['datetakenunknown'] == "0": - return dateutil.parser.parse(photo['datetaken']) + try: + return dateutil.parser.parse(photo['datetaken']) + except ValueError: + # now what? + return datetime.datetime(1970,1,1,0,0,0,0) try: parsed = datetime.datetime.strptime(photo['title'], '%Y%m%d_%H%M%S')
The text was updated successfully, but these errors were encountered:
No branches or pull requests
scanning software doesn't care...
The text was updated successfully, but these errors were encountered: