Skip to content

Commit 5c7d688

Browse files
committed
make error message python 3.7 compatible
1 parent f75a28c commit 5c7d688

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

siibra/volumes/volume.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def fetch(
208208
tmplt_bbox = voi.space.get_template().boundingbox
209209
intersection_bbox = voi.intersection(tmplt_bbox)
210210
if intersection_bbox is None:
211-
raise RuntimeError(f"{voi=} provided lies out side the voxel space of the {voi.space.name} template.")
211+
raise RuntimeError(f"voi provided ({voi}) lies out side the voxel space of the {voi.space.name} template.")
212212
if intersection_bbox.minpoint != voi.minpoint or intersection_bbox.maxpoint != voi.maxpoint:
213213
logger.info(
214214
f"Since provided voi lies outside the template ({voi.space}) it is clipped as: {intersection_bbox}"

0 commit comments

Comments
 (0)