From 5b06b64833af8109d6058de2fd82371771e97d45 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Thu, 21 Jul 2016 10:31:36 -0400 Subject: [PATCH] Careful when self.state is None. --- rida/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rida/database.py b/rida/database.py index c24fd0ca..88a8ce48 100644 --- a/rida/database.py +++ b/rida/database.py @@ -261,7 +261,7 @@ class ComponentBuild(Base): # Koji is py2 only, so this fails if the main web process is # running on py3. import koji - retval['state_name'] = koji.BUILD_STATES[self.state] + retval['state_name'] = koji.BUILD_STATES.get(self.state) except ImportError: pass