Skip to content

Commit

Permalink
Diagnostic formatting improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrojnar committed Apr 18, 2024
1 parent e4d471b commit a53bd2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion get_code_signing_ca.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def download_cert(hash):
stderr.flush()
return resp.content.decode('utf-8')
except RequestException as e:
print('\nAn error occurred:', e, file=stderr)
print(f'\n{e}', file=stderr)
print('\nGiving up on', hash, file=stderr)

resp = get('https://ccadb-public.secure.force.com/microsoft/IncludedCACertificateReportForMSFTCSV')
Expand All @@ -34,3 +34,4 @@ def download_cert(hash):
for cert in certs:
if cert is not None:
print(cert)
print('\nDone', file=stderr)

0 comments on commit a53bd2b

Please sign in to comment.