diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/fedpkg.py | 4 |
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']) |