Assume we're in prod unless we know we aren't

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2018-08-10 10:33:13 +02:00
parent 018ebc6f47
commit 23e18eafe4

View file

@ -43,7 +43,7 @@ def _koji_link(msg):
raise NotImplementedError("Unhandled instance")
# One last little switch-a-roo for stg
if '.stg.' in msg['request'][0]:
if msg['request'] and '.stg.' in msg['request'][0]:
base = "https://koji.stg.fedoraproject.org/koji"
return base + "/taskinfo?taskID=%i" \