Skip to content

Commit 98e692e

Browse files
committed
If there are no tiff paths use an empty list to avoid exception in loop
1 parent e085214 commit 98e692e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/murfey/client/tui/screens.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ def on_button_pressed(self, event: Button.Pressed):
773773
upstream_tiff_paths_response = requests.get(
774774
f"{self.app._environment.url.geturl()}/visits/{event.button.label}/upstream_tiff_paths"
775775
)
776-
upstream_tiff_paths = upstream_tiff_paths_response.json()
776+
upstream_tiff_paths = upstream_tiff_paths_response.json() or []
777777
for tp in upstream_tiff_paths:
778778
(download_dir / tp).parent.mkdir(exist_ok=True, parents=True)
779779
stream_response = requests.get(

0 commit comments

Comments
 (0)