diff options
author | Jakub Wilk <jwilk@jwilk.net> | 2015-07-23 14:54:27 +0200 |
---|---|---|
committer | Maximiliano Curia <maxy@debian.org> | 2015-09-29 16:03:55 +0200 |
commit | 6cf0475c8cc7ba9af71c44a184ecb7067f4047a1 (patch) | |
tree | 0b467ee3c849487525acd4da874ee72b0c759a43 | |
parent | 793cfb34d865c2035a3f340c1e2afdcd9e82ab1e (diff) |
issue: Fix creating issue without labels
Set default value of labels to empty list, instead of None which caused:
nil is not a array.
HTTP Error 422: Unprocessable Entity
Fixes #142.
-rwxr-xr-x | git-hub | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1050,7 +1050,7 @@ class IssueCmd (CmdGroup): "any text after an empty line is used as " "the optional body" % cls.name) parser.add_argument('-l', '--label', dest='labels', - metavar='LABEL', action='append', + metavar='LABEL', action='append', default=[], help="attach LABEL to the %s (can be " "specified multiple times to set multiple " "labels)" % cls.name) |