Delete password variable once it's used
This commit is contained in:
parent
0121490b0d
commit
4d8c20e274
|
@ -62,6 +62,7 @@ def main():
|
||||||
format='%(levelname)-8s: %(message)s')
|
format='%(levelname)-8s: %(message)s')
|
||||||
if args.verbosity: args.foreground = True
|
if args.verbosity: args.foreground = True
|
||||||
|
|
||||||
|
# figure out config file
|
||||||
config_file = args.config if args.config else CONFIG_FILE
|
config_file = args.config if args.config else CONFIG_FILE
|
||||||
config_file = pathlib.Path(config_file)
|
config_file = pathlib.Path(config_file)
|
||||||
|
|
||||||
|
@ -126,6 +127,7 @@ def main():
|
||||||
sn_api = StandardNotesAPI(sync_url, username)
|
sn_api = StandardNotesAPI(sync_url, username)
|
||||||
if not keys:
|
if not keys:
|
||||||
keys = sn_api.genKeys(password)
|
keys = sn_api.genKeys(password)
|
||||||
|
del password
|
||||||
sn_api.signIn(keys)
|
sn_api.signIn(keys)
|
||||||
log_msg = 'Successfully logged into account "%s".'
|
log_msg = 'Successfully logged into account "%s".'
|
||||||
logging.info(log_msg % username)
|
logging.info(log_msg % username)
|
||||||
|
@ -155,7 +157,10 @@ def main():
|
||||||
|
|
||||||
if login_success:
|
if login_success:
|
||||||
logging.info('Starting FUSE filesystem.')
|
logging.info('Starting FUSE filesystem.')
|
||||||
fuse = FUSE(StandardNotesFUSE(sn_api), args.mountpoint, foreground=args.foreground, nothreads=True)
|
fuse = FUSE(StandardNotesFUSE(sn_api),
|
||||||
|
args.mountpoint,
|
||||||
|
foreground=args.foreground,
|
||||||
|
nothreads=True) # benefits don't outweigh the costs
|
||||||
|
|
||||||
logging.info('Exiting.')
|
logging.info('Exiting.')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user