Thanks for the quick reply! I've since discovered that the error was
caused by a few of my photos having EXIF dates way far in the future,
somehow. I striped out the date info from those files and it now works
fine. And yeah I had added a few lines to try and debug the problem.
Thanks for looking into it. :) Also, about exporting utf-8 characters
in comments and keywords, I don't know if you already have a fix in
the works for this or not, but I made a small change which will
correctly export these characters. In tilutil/exiftool.py line 101:
command = [_EXIFTOOL, '-F', '-P', '-ImageDescription=']
I added the -codedcharset=utf8 option:
command = [_EXIFTOOL, '-codedcharacterset=utf8', '-F', '-P', '-
ImageDescription=']
I'm not sure how to submit this the "proper" way, but I hope it helps!