1. anatoly techtonik
  2. pypi-techtonik

Commits

Richard Jones  committed 4fd4dd5

fix

  • Participants
  • Parent commits e9752de
  • Branches default

Comments (0)

Files changed (1)

File store.py

View file
  • Ignore whitespace
         '''Given an access token, determine the user associated with it.
         '''
         sql = 'select user from oauth_access_tokens where token = %s'
-        safe_execute(self.store.get_cursor(), sql, (token.key, ))
+        cursor = self.store.get_cursor()
+        safe_execute(cursor, sql, (token.key, ))
         for row in cursor.fetchall():
             return row[0]
         raise ValueError('token %r not valid (or too valid)'%token.key)