Skip to content
Snippets Groups Projects
Commit 0bafe5cb authored by Adrian Petrescu's avatar Adrian Petrescu
Browse files

Fix hack incompatibility with cryptfile keyring

parent eeb60fa7
Branches
Tags 0.19.0
1 merge request!8Fix hack incompatibility with cryptfile keyring
...@@ -57,7 +57,10 @@ class lazy_credential: ...@@ -57,7 +57,10 @@ class lazy_credential:
def init_keyring(): def init_keyring():
# small hack to fix some weird issues with pyinstaller and keyring # small hack to fix some weird issues with pyinstaller and keyring
# there seems to be a cache issue somewhere # there seems to be a cache issue somewhere
try:
del keyring.backend.get_all_keyring.__wrapped__.always_returns del keyring.backend.get_all_keyring.__wrapped__.always_returns
except AttributeError:
pass
keyring.core.init_backend() keyring.core.init_backend()
# /end of hack # /end of hack
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment