Do not require using `priority_multiplier` key

This commit is contained in:
ZyX 2014-09-04 22:08:36 +04:00
parent 667cd4bce5
commit b7504c7178
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ def process_segment_lister(pl, segment_info, parsed_segments, side, mode, colors
if subsegment_update:
subsegment = subsegment.copy()
subsegment.update(subsegment_update)
if subsegment_update['priority_multiplier'] and subsegment['priority']:
if 'priority_multiplier' in subsegment_update and subsegment['priority']:
subsegment['priority'] *= subsegment_update['priority_multiplier']
process_segment(