Browse Source

Fix error if the raw_values is empty

pull/63/head
Jean-Marc Martins 11 years ago
parent
commit
f8b9b84728
  1. 2
      pygal/util.py

2
pygal/util.py

@ -346,7 +346,7 @@ def prepare_values(raw, config, cls):
(width - len(raw_values)) * [None] # aligning values
if len(raw_values) < width else [])):
if isinstance(raw_value, dict):
value = raw_value.pop('value')
value = raw_value.pop('value', None)
metadata[index] = raw_value
else:
value = raw_value

Loading…
Cancel
Save