diff --git a/autopush/utils.py b/autopush/utils.py index 56f00aa1..8527b6c0 100644 --- a/autopush/utils.py +++ b/autopush/utils.py @@ -380,7 +380,7 @@ def expired(self, at_time=None): """ now = at_time or int(time.time()) - return now >= (self.ttl + self.timestamp) + return now >= ((self.ttl or 0) + self.timestamp) @classmethod def from_message_table(cls, uaid, item):