Last change
on this file was
77:8715d37c78f8,
checked in by Ralph Meijer <ralphm@…>, 6 years ago
|
Move classes related to XML Stanzas to their own module, fix for delay.
|
File size:
653 bytes
|
Rev | Line | |
---|
[77] | 1 | # HG changeset patch |
---|
| 2 | # User Ralph Meijer <ralphm@ik.nu> |
---|
| 3 | # Date 1427892019 -7200 |
---|
| 4 | # Wed Apr 01 14:40:19 2015 +0200 |
---|
| 5 | # Node ID 56607e5ddb53e3fafbecb41118bd220dea9310c7 |
---|
| 6 | # Parent 62addc486a34d360b30f08c96f6deb0a95a5bf7a |
---|
| 7 | Handle TypeError on malformed timestamp value |
---|
| 8 | |
---|
| 9 | diff --git a/wokkel/delay.py b/wokkel/delay.py |
---|
| 10 | --- a/wokkel/delay.py |
---|
| 11 | +++ b/wokkel/delay.py |
---|
| 12 | @@ -78,7 +78,7 @@ |
---|
| 13 | # Assume UTC if no timezone was given |
---|
| 14 | if stamp.tzinfo is None: |
---|
| 15 | stamp = stamp.replace(tzinfo=tzutc()) |
---|
| 16 | - except (KeyError, ValueError): |
---|
| 17 | + except (KeyError, ValueError, TypeError): |
---|
| 18 | stamp = None |
---|
| 19 | |
---|
| 20 | try: |
---|
Note: See
TracBrowser
for help on using the repository browser.