Skip to content

Commit

Permalink
Fix: _labels_for_format was returning None labels
Browse files Browse the repository at this point in the history
  • Loading branch information
mskrajnowski committed Sep 16, 2014
1 parent b27cd51 commit edabb01
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bumpversion/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,11 @@ def __init__(self, parse, serialize, search, replace, part_configs=None):
self.replace = replace

def _labels_for_format(self, serialize_format):
return (label for _, label, _, _ in Formatter().parse(serialize_format))
return (
label
for _, label, _, _ in Formatter().parse(serialize_format)
if label
)

def order(self):
# currently, order depends on the first given serialization format
Expand Down

0 comments on commit edabb01

Please sign in to comment.