summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author <floe@butterbrot.org>2013-04-29 17:09:22 +0200
committer <floe@butterbrot.org>2013-04-29 17:09:22 +0200
commitfa0b9ca921259ada5737b1e05cdbc1d8c6c2d913 (patch)
treef966edaa8714e8a581917a30cd622e6901bed295
parentc75936e5dd254b72188de7473098a51f522428f8 (diff)
fix "none" labels
-rwxr-xr-xissues.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/issues.py b/issues.py
index ed9882b..d3e7357 100755
--- a/issues.py
+++ b/issues.py
@@ -112,7 +112,9 @@ def handle_tracker_item(item, issue_title_prefix):
except KeyError:
pass
try:
- labels.append(labelify(item.find('field',attrs={'name':'category'}).string))
+ category = labelify(item.find('field',attrs={'name':'category'}).string)
+ if category != "none":
+ labels.append(category)
except KeyError:
pass