Produce error for malformed pin definition
This commit is contained in:
parent
8438f85a2e
commit
ae06c3c2f3
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user