Produce error for malformed pin definition

This commit is contained in:
Phil Howard 2017-12-29 22:09:34 +00:00
parent 8438f85a2e
commit ae06c3c2f3

View File

@ -410,6 +410,12 @@ def render_pin(pin_num, selected_url, overlay=None):
if overlay_pin is None:
overlay_pin = {}
if isinstance(overlay_pin, str):
source = ''
if 'source' in overlay:
source = overlay['source']
debug(1, "{}: Overlay pin '{}' for pin {} is a string! Should be dict".format(overlay['source'], overlay_pin, pin_num))
pin_regular = True
if 'name' in overlay_pin: