Skip to content

Commit 7b9f438

Browse files
committed
Merge branch 'example' into develop
2 parents f5dc384 + 0b7ec25 commit 7b9f438

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

CHANGES.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@ Changelog
22
=========
33

44

5+
dev (not yet released)
6+
~~~~~~~~~~~~~~~~~~~~~~
7+
8+
Bug fixes and minor changes
9+
---------------------------
10+
11+
+ `#171`_: Fix `dumpinvestigation.py` example script
12+
13+
.. _#171: https://github.com/icatproject/python-icat/pull/171
14+
15+
516
.. _changes-1_7_0:
617

718
1.7.0 (2025-12-04)

doc/examples/dumpinvestigation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def get_investigation_id(client, invid):
2929
if len(l) == 2:
3030
# one colon, invid == name:visitId
3131
query.addConditions({"visitId": "= '%s'" % l[1]})
32-
else:
32+
elif len(l) > 2:
3333
# too many colons
3434
raise RuntimeError("Invalid investigation identifier '%s'" % invid)
3535
return client.assertedSearch(query)[0]

0 commit comments

Comments
 (0)