summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pyfedpkg/__init__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py
index 7577823..d79fe1b 100644
--- a/src/pyfedpkg/__init__.py
+++ b/src/pyfedpkg/__init__.py
@@ -1053,7 +1053,11 @@ class PackageModule:
if not self.anonkojisession:
self.init_koji()
# We may not have Fedoras. Find out what rawhide target does.
- rawhidetarget = self.kojisession.getBuildTarget('dist-rawhide')
+ try:
+ rawhidetarget = self.kojisession.getBuildTarget('dist-rawhide')
+ except:
+ # We couldn't hit koji, bail.
+ raise FedpkgError('Unable to query koji to find rawhide target')
desttag = rawhidetarget['dest_tag_name']
return desttag.strip('dist-f')