Skip to content

Commit b525f6e

Browse files
committed
mod
1 parent 41338b8 commit b525f6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,8 @@ def _set_config_val(k,v):
323323
g.monitor_config[mid][k] = v
324324
else:
325325
try:
326-
g.monitor_polygons[mid].append({'name': k, 'value': str2tuple(v),'pattern': None})
326+
p = str2tuple(v) # if not poly, exception will be thrown
327+
g.monitor_polygons[mid].append({'name': k, 'value': p,'pattern': None})
327328
g.logger.Debug(2,'adding polygon: {} [{}]'.format(k, v ))
328329
except Exception as e:
329330
g.logger.Debug(2,'{} is not a polygon, adding it as unknown string key'.format(k))

0 commit comments

Comments
 (0)