Commit a94c75f4 authored by Reto Da Forno's avatar Reto Da Forno
Browse files

minor fix (serial proxy crash in case no remoteIp was specified)

parent 241258d5
......@@ -170,7 +170,10 @@ def update_configuration_from_db():
srconfs = tree.xpath('//d:serialConf', namespaces=ns)
for srconf in srconfs:
obsids = srconf.xpath('d:obsIds', namespaces=ns)[0].text.split()
remoteIp = srconf.xpath('d:remoteIp', namespaces=ns)[0].text
remoteIp = srconf.xpath('d:remoteIp', namespaces=ns)
if not remoteIp:
continue # skip
remoteIp = remoteIp[0].text
# Create a pair of FIFO pipes for every observer and start ncat:
for obsid in obsids:
if int(obsid) in mapping:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment