Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion doc/examples/dumpinvestigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down