Skip to content

Commit

Permalink
Fix optional key not found in dict
Browse files Browse the repository at this point in the history
  • Loading branch information
maricaantonacci committed Nov 21, 2020
1 parent f71d2b8 commit 1d65f27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/deployments/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ def unlockdeployment(depid=None):

def preprocess_outputs(browser, depid, outputs, stoutputs):
for key, value in stoutputs.items():
if value["type"] == "download-url":
if value["action"] == "shorturl":
if value.get("type") == "download-url":
if value.get("action") == "shorturl":
try:
shorturl = yourls.url_shorten(outputs[key], depid)
if shorturl:
Expand Down

0 comments on commit 1d65f27

Please sign in to comment.