summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2010-12-02 15:26:15 -0800
committerJesse Keating <jkeating@redhat.com>2010-12-02 15:27:20 -0800
commitd437be9f4d04e6e5169dbf5e862672ecd2630c59 (patch)
treeefdb87770c588a2725b73ec217960e825515800b
parent69de8ecadf6d93bde3818c5973db871baac6ec2e (diff)
downloadfedora-packager-d437be9f4d04e6e5169dbf5e862672ecd2630c59.zip
fedora-packager-d437be9f4d04e6e5169dbf5e862672ecd2630c59.tar.gz
fedora-packager-d437be9f4d04e6e5169dbf5e862672ecd2630c59.tar.xz
Backport a bugfix from koji upstream to fix 628504
This fixes a potential traceback on ^c
-rwxr-xr-xsrc/fedpkg.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py
index 29c774d..772e86f 100755
--- a/src/fedpkg.py
+++ b/src/fedpkg.py
@@ -125,6 +125,10 @@ class TaskWatcher(object):
return (state == 'CLOSED')
def display_state(self, info):
+ # We can sometimes be passed a task that is not yet open, but
+ # not finished either. info would be none.
+ if not info:
+ return 'unknown'
if info['state'] == koji.TASK_STATES['OPEN']:
if info['host_id']:
host = self.session.getHost(info['host_id'])