Patrick Kilian wrote:
>> I saved the traceback and will be looking into making the uploader
>> more robust against this type of corrupt uploads.
> Do you know what causes the corrupt uploads?

I do know the reason for the aborts. It's a corrupt zip file (aborted
upload for example). I do catch that case. The culprit is that I log
these events with a line of:

logging.warning('unknown zip file error in file %s uploaded by user %s
(%s, %s)' % (self.upload.file, self.upload.user_id,
str(sys.exc_info()[1]), dir))

And that crashes in the case of non-ascii characters, apparently.
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc1 in position 154: 
> ordinal not in range(128)

So, while I do catch the error, I don't check for errors in logging the
error...

I don't know which of the fields that I use lead to the error. Any hints
as to where to robustify more?

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Tilesathome mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/tilesathome

Reply via email to