Changeset 216:c458fa7f5f0f for wokkel


Ignore:
Timestamp:
Apr 1, 2015, 2:40:19 PM (5 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
default
Children:
219:ae8b954e4ed9, 221:cd2b3dff1f2f
Message:

Handle TypeError? on malformed timestamp value.

This works around an obscure bug in dateutil reported by Adrien Cossa:
https://bugs.launchpad.net/dateutil/+bug/1247643.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wokkel/delay.py

    r209 r216  
    8181            if stamp.tzinfo is None:
    8282                stamp = stamp.replace(tzinfo=tzutc())
    83         except (KeyError, ValueError):
     83        except (KeyError, ValueError, TypeError):
    8484            stamp = None
    8585
Note: See TracChangeset for help on using the changeset viewer.