Skip to content

Commit

Permalink
Merge pull request #105 from kushalbakshi/staging
Browse files Browse the repository at this point in the history
Add `Exception` to `raise` statements
  • Loading branch information
kushalbakshi authored Feb 21, 2024
2 parents be1cc87 + 6747d8a commit 1c9b392
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions element_interface/prairie_view_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def write_single_bigtiff(
},
)
except Exception as e:
raise f"Error in processing tiff file {input_file}: {e}"
raise Exception(f"Error in processing tiff file {input_file}: {e}")
else:
combined_data = []
try:
Expand All @@ -142,7 +142,7 @@ def write_single_bigtiff(
assert len(tffl.pages) == 1
combined_data.append(tffl.pages[0].asarray())
except Exception as e:
raise f"Error in processing tiff file {input_file}: {e}"
raise Exception(f"Error in processing tiff file {input_file}: {e}")

combined_data = np.dstack(combined_data).transpose(
2, 0, 1
Expand Down

0 comments on commit 1c9b392

Please sign in to comment.