Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
from lazagne.config.module_info import ModuleInfo
from lazagne.config import homes
from binascii import hexlify
import traceback
try:
import jeepney.auth
# except ImportError:
except Exception:
pass
else:
# Thanks to @mitya57 for its Work around
def make_auth_external():
hex_uid = hexlify(str(make_auth_external.uid).encode('ascii'))
return b'AUTH EXTERNAL %b\r\n' % hex_uid
jeepney.auth.make_auth_external = make_auth_external
class Libsecret(ModuleInfo):
def __init__(self):
ModuleInfo.__init__(self, 'libsecret', 'wallet')
def run(self):
items = []
visited = set()
try:
import dbus
import secretstorage
import datetime
except ImportError as e:
self.error('libsecret: {0}'.format(e))
return []