Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
luckman212 committed Sep 7, 2024
1 parent c1a695d commit 212f47c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jmap-backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def email_filename(email):
def run_if(cmd):
if cmd:
if os.path.exists(cmd[0]):
dbg(f'executing: `{' '.join(cmd)}`')
dbg(f'executing: `{" ".join(cmd)}`')
subprocess.run(cmd)
else:
print(f'invalid command: {cmd}', file=sys.stderr)
Expand Down Expand Up @@ -169,7 +169,7 @@ def download_email(session, email, base_dir):
r.raise_for_status()
with open(full_path, 'wb') as fh:
fh.write(r.content)
dbg(f'Downloaded {email.id} {email.date.strftime('%Y-%m-%d %H:%M:%S')}')
dbg(f'Downloaded {email.id} {email.date.strftime("%Y-%m-%d %H:%M:%S")}')
except requests.RequestException as e:
dbg(f"Failed to download {email.id}: {e}")
return False
Expand Down

0 comments on commit 212f47c

Please sign in to comment.