Skip to content
Snippets Groups Projects

Fix hack incompatibility with cryptfile keyring

Merged Adrian Petrescu requested to merge apetresc/cli:cryptfile-hack into master
1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
+ 4
1
@@ -57,7 +57,10 @@ class lazy_credential:
def init_keyring():
# small hack to fix some weird issues with pyinstaller and keyring
# there seems to be a cache issue somewhere
del keyring.backend.get_all_keyring.__wrapped__.always_returns
try:
del keyring.backend.get_all_keyring.__wrapped__.always_returns
except AttributeError:
pass
keyring.core.init_backend()
# /end of hack
Loading