Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Handle case when token has a null expires

  • Loading branch information...
commit 6e6383037fc86beba36f16e9beb89e850ba24649 1 parent 4bdb9e8
@paltman paltman authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 oauth_access/
4 oauth_access/
@@ -17,4 +17,6 @@ class Meta:
unique_together = [("user", "service")]
def expired(self):
- return self.expires and < self.expires
+ if not self.expires:
+ return True
+ return < self.expires
Please sign in to comment.
Something went wrong with that request. Please try again.