From 0ec622636bd4f0c8faf1f89a7a4e1b3109f785cb Mon Sep 17 00:00:00 2001 From: Rolf Krahl Date: Fri, 5 Dec 2025 20:48:33 +0100 Subject: [PATCH 1/2] Fixup b8120d4 --- doc/examples/dumpinvestigation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/examples/dumpinvestigation.py b/doc/examples/dumpinvestigation.py index 6dcbe57..209530f 100644 --- a/doc/examples/dumpinvestigation.py +++ b/doc/examples/dumpinvestigation.py @@ -29,7 +29,7 @@ def get_investigation_id(client, invid): if len(l) == 2: # one colon, invid == name:visitId query.addConditions({"visitId": "= '%s'" % l[1]}) - else: + elif len(l) > 2: # too many colons raise RuntimeError("Invalid investigation identifier '%s'" % invid) return client.assertedSearch(query)[0] From 0b7ec2577faeab1cc954b1515dc28c517c3a45ef Mon Sep 17 00:00:00 2001 From: Rolf Krahl Date: Fri, 5 Dec 2025 21:05:03 +0100 Subject: [PATCH 2/2] Update changelog --- CHANGES.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index 2065dfd..f4e178d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -2,6 +2,17 @@ Changelog ========= +dev (not yet released) +~~~~~~~~~~~~~~~~~~~~~~ + +Bug fixes and minor changes +--------------------------- + ++ `#171`_: Fix `dumpinvestigation.py` example script + +.. _#171: https://github.com/icatproject/python-icat/pull/171 + + .. _changes-1_7_0: 1.7.0 (2025-12-04)