Skip to content

Commit

Permalink
refactor(#3): catch RuntimeError instead of Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianSolberg committed Oct 26, 2025
1 parent fc1d707 commit 4393a81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lasConverter.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def group_by_h3_cell(metadata: pd.DataFrame, cell_to_surveys: DefaultDict[str, L
try:
p.execute_streaming(chunk_size=500000)
print(f"✅ Written H3 cell {c2}.")
except Exception as e:
except RuntimeError as e:
print(f"⚠️ Pipeline failed for cell {c2}: {e}")
finally:
shutil.rmtree(temp_folder)
Expand Down

0 comments on commit 4393a81

Please sign in to comment.