1. Monwara LLC
  2. Untitled project
  3. PyMSTranslator

Commits

Branko Vukelic  committed cff54f9

Fixed #2: wrong exipry value passed to timedelta

  • Participants
  • Parent commits 670fe25
  • Branches master

Comments (0)

Files changed (1)

File mstranslator/client.py

View file
         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