fix possible bug

This commit is contained in:
Peter Schnebel 2013-10-16 10:33:51 +02:00
parent 9b8ad7dcd1
commit 846f4eb7ae

View file

@ -58,9 +58,7 @@ def apply_style(style, custom, value):
cut += inc
if value < cut:
return mapping[i]
log.error(loglevel, u'Failed to apply style: {} [{}]'.format(style,
u', '.join(mapping)))
return value
return mapping[i]
def fetch_item_attributes(lib, loglevel, item, write):
"""Fetch and store tempo for a single item. If ``write``, then the