aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Leis <evan.leis@wearetopsecret.com>2012-02-07 16:06:47 -0700
committerEvan Leis <evan.leis@wearetopsecret.com>2012-02-07 16:06:47 -0700
commit0e64bef2069049a7ad1a37f1dbb4e5b662556d41 (patch)
treecc36158219f28f1adbb3003b9e21de0145a1cc87
parent1227640f216cd04930862708cd815a86838021f4 (diff)
downloadezfacebook-0e64bef2069049a7ad1a37f1dbb4e5b662556d41.zip
ezfacebook-0e64bef2069049a7ad1a37f1dbb4e5b662556d41.tar.gz
Fixing bugs
-rw-r--r--ezfacebook/lib/api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ezfacebook/lib/api.py b/ezfacebook/lib/api.py
index 9dab7df..4423f54 100644
--- a/ezfacebook/lib/api.py
+++ b/ezfacebook/lib/api.py
@@ -329,7 +329,7 @@ class AccessTokenCacheItem(object):
expires = parsed.get("expires", [0])[-1]
self.token = access_token
- self.expires = datetime.now() + timedelta(seconds=int(expires - 1)) # Shave a second
+ self.expires = datetime.now() + timedelta(seconds=int(expires) - 1) # Shave a second
AccessTokenCache = AccessTokenCache()