From f539a0cb1de2d3392e8611526b9ea5264af22202 Mon Sep 17 00:00:00 2001 From: Josh Roesslein Date: Sat, 31 Oct 2009 02:04:50 -0500 Subject: [PATCH] Update oauth library. --- tweepy/oauth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweepy/oauth.py b/tweepy/oauth.py index b6284c5..286de18 100644 --- a/tweepy/oauth.py +++ b/tweepy/oauth.py @@ -514,7 +514,7 @@ class OAuthServer(object): """Verify that timestamp is recentish.""" timestamp = int(timestamp) now = int(time.time()) - lapsed = now - timestamp + lapsed = abs(now - timestamp) if lapsed > self.timestamp_threshold: raise OAuthError('Expired timestamp: given %d and now %s has a ' 'greater difference than threshold %d' % -- 2.25.1