diff --git a/linux/debian/changelog b/linux/debian/changelog index 5a9a561..790733c 100644 --- a/linux/debian/changelog +++ b/linux/debian/changelog @@ -1,4 +1,10 @@ -ogagent (1.7.0-1) UNRELEASED; urgency=medium +ogagent (1.7.1-1) stable; urgency=medium + + * Make cfg2obj more robust + + -- OpenGnsys developers Tue, 25 Mar 2025 13:31:33 +0100 + +ogagent (1.7.0-1) stable; urgency=medium * Delete the new "ptt" parameter. It's not needed. diff --git a/src/VERSION b/src/VERSION index bd8bf88..943f9cb 100644 --- a/src/VERSION +++ b/src/VERSION @@ -1 +1 @@ -1.7.0 +1.7.1 diff --git a/src/opengnsys/workers/oglive_worker.py b/src/opengnsys/workers/oglive_worker.py index 150a0ae..9f53d9f 100644 --- a/src/opengnsys/workers/oglive_worker.py +++ b/src/opengnsys/workers/oglive_worker.py @@ -388,7 +388,10 @@ class ogLiveWorker(ServerWorker): ptrCfg = line.split ('\t') for item in ptrCfg: - k, v = item.split ('=') + if '=' not in item: + logger.warning (f'invalid item ({item})') + continue + k, v = item.split ('=', maxsplit=1) elem[k] = v obj.append (elem)