Commits

Branko Vukelic committed cff54f9

Fixed #2: wrong exipry value passed to timedelta

Comments (0)

Files changed (1)

mstranslator/client.py

         response = json.loads(response.read())
 
         self.access_key = response['access_token']
-        self.expiry = response['expires_in']
+        self.expiry = int(response['expires_in'])
 
         return self.access_key