source:
ralphm-patches/delay-keyerror.patch
Last change on this file was 77:8715d37c78f8, checked in by Ralph Meijer <ralphm@…>, 6 years ago | |
---|---|
File size: 653 bytes |
-
wokkel/delay.py
# HG changeset patch # User Ralph Meijer <ralphm@ik.nu> # Date 1427892019 -7200 # Wed Apr 01 14:40:19 2015 +0200 # Node ID 56607e5ddb53e3fafbecb41118bd220dea9310c7 # Parent 62addc486a34d360b30f08c96f6deb0a95a5bf7a Handle TypeError on malformed timestamp value diff --git a/wokkel/delay.py b/wokkel/delay.py
a b 78 78 # Assume UTC if no timezone was given 79 79 if stamp.tzinfo is None: 80 80 stamp = stamp.replace(tzinfo=tzutc()) 81 except (KeyError, ValueError ):81 except (KeyError, ValueError, TypeError): 82 82 stamp = None 83 83 84 84 try:
Note: See TracBrowser
for help on using the repository browser.