source: ralphm-patches/delay-keyerror.patch @ 77:8715d37c78f8

Last change on this file since 77:8715d37c78f8 was 77:8715d37c78f8, checked in by Ralph Meijer <ralphm@…>, 4 years ago

Move classes related to XML Stanzas to their own module, fix for delay.

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  
    7878            # Assume UTC if no timezone was given
    7979            if stamp.tzinfo is None:
    8080                stamp = stamp.replace(tzinfo=tzutc())
    81         except (KeyError, ValueError):
     81        except (KeyError, ValueError, TypeError):
    8282            stamp = None
    8383
    8484        try:
Note: See TracBrowser for help on using the repository browser.