Commits

Jason R. Coombs committed 29a0691

Don't try to create a directory if none was indicated

  • Participants
  • Parent commits 7b324f0

Comments (0)

Files changed (1)

keyring/backend.py

     def _ensure_file_path(self):
         """ensure the storage path exists"""
         storage_root = os.path.dirname(self.file_path)
-        if not os.path.isdir(storage_root):
+        if storage_root and not os.path.isdir(storage_root):
             os.makedirs(storage_root)