Skip to content

Commit

Permalink
chore: tiny refactor of code
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Jan 19, 2025
1 parent 881271c commit e455817
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/colony_print/scripts/printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ def save(id, printer=None):

job_id = result["id"]
result = api.wait_job(job_id)

if not "output_data" in result:
raise appier.OperationalError(message="No output data in result")

data_b64 = result["output_data"]
data = base64.b64decode(data_b64)
with open("output.pdf", "wb") as file:
Expand Down

0 comments on commit e455817

Please sign in to comment.