Skip to content

Commit

Permalink
Merge pull request #46 from cisagov/bugfix/crash-on-save
Browse files Browse the repository at this point in the history
Fix crash on save
  • Loading branch information
king-alexander committed Mar 22, 2023
2 parents 6953121 + e69a8f0 commit c626d93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/load_certs.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def group_update_domain(domain, max_expired_date, verbose=False, dry_run=False):
data = base64.b64decode(result["data"]) # encoded in ASN.1 DER
pem = ssl.DER_cert_to_PEM_cert(data)
cert, is_precert = Cert.from_pem(pem)
cert.log_id = task.get("args")[0] # get log_id from task
cert.log_id = task.get("args")[0]["id"] # get log_id from task
if is_precert:
# if this is a precert, we save to the precert collection
with context_managers.switch_collection(Cert, "precerts"):
Expand Down
2 changes: 1 addition & 1 deletion src/admiral/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""This file defines the version of this module."""
__version__ = "1.3.1"
__version__ = "1.3.2"

0 comments on commit c626d93

Please sign in to comment.