diff options
Diffstat (limited to 'xmpp/protocol.py')
-rw-r--r-- | xmpp/protocol.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmpp/protocol.py b/xmpp/protocol.py index e9927b3..f49dcba 100644 --- a/xmpp/protocol.py +++ b/xmpp/protocol.py @@ -523,7 +523,7 @@ class Protocol(Node): try: if not self.getTimestamp() or x.getAttr("stamp") < self.getTimestamp(): self.setTimestamp(x.getAttr("stamp")) - except: + except Exception: pass if timestamp is not None: self.setTimestamp(timestamp) # To auto-timestamp stanza just pass timestamp="" @@ -534,7 +534,7 @@ class Protocol(Node): """ try: to = self["to"] - except: + except Exception: to = None return to @@ -544,7 +544,7 @@ class Protocol(Node): """ try: frm = self["from"] - except: + except Exception: frm = None return frm |