1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2025-01-03 13:45:49 +00:00

Hotfix: Workaround for jeepney DBus-lib and asyncio event loop. Fixes #234

This commit is contained in:
Manu 2019-03-23 19:07:34 +08:00
parent 59f836d84c
commit d773cfa3a2

View file

@ -21,6 +21,7 @@ def set_password(self, service, repo_url, password):
collection.create_item(repo_url, attributes, password, replace=True)
def get_password(self, service, repo_url):
asyncio.set_event_loop(asyncio.new_event_loop())
collection = secretstorage.get_default_collection(self.connection)
if collection.is_locked():
collection.unlock()