From 5b17192c7cc9026aaa334e84e7dda24e47c1939b Mon Sep 17 00:00:00 2001
From: Yuming Zhu <yzhu@redhat.com>
Date: Apr 12 2017 11:17:24 +0000
Subject: fix unexcepted build notification error by NoneValue of task.label


---

diff --git a/builder/kojid b/builder/kojid
index 6f3837a..d3ccc05 100755
--- a/builder/kojid
+++ b/builder/kojid
@@ -4633,7 +4633,7 @@ Build Info: %(weburl)s/buildinfo?buildID=%(build_id)i\r
         data[task_id]['id'] = taskinfo['id']
         data[task_id]['method'] = taskinfo['method']
         data[task_id]['arch'] = taskinfo['arch']
-        data[task_id]['build_arch'] = taskinfo['label']
+        data[task_id]['build_arch'] = taskinfo['label'] or 'noarch'
         data[task_id]['host'] = hostinfo and hostinfo['name'] or None
         data[task_id]['state'] = koji.TASK_STATES[taskinfo['state']].lower()
         data[task_id]['result'] = result

