summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 06ade47..5828d93 100644
--- a/src/pyfedpkg/__init__.py
+++ b/src/pyfedpkg/__init__.py
@@ -980,7 +980,11 @@ class PackageModule:
session_opts = {'user': user}
# We assign the kojisession to our self as it can be used later to
# watch the tasks.
- self.kojisession = koji.ClientSession(defaults['server'], session_opts)
+ log.debug('Initiating a koji session to %s' % defaults['server'])
+ try:
+ self.kojisession = koji.ClientSession(defaults['server'], session_opts)
+ except:
+ raise FedpkgError('Could not initiate koji session')
# save the weburl for later use too
self.kojiweburl = defaults['weburl']
# log in using ssl