Commits

Jason R. Coombs committed 044967c

Fixed exception handling in Python 3

  • Participants
  • Parent commits dc4498f

Comments (0)

Files changed (1)

keyring/backend.py

                 TargetName=target,
             )
         except self.pywintypes.error, e:
-            if e[:2] == (1168, 'CredRead'): # not found
+            if e.winerror == 1168 and e.funcname == 'CredRead': # not found
                 return None
             raise
         return res