Skip to content

Commit

Permalink
__init__.py: Do not wrap an exception when reraising.
Browse files Browse the repository at this point in the history
Wrapping `Exception` around `e` messes with the exception `e`, so just `raise e`
  • Loading branch information
schwehr committed Oct 19, 2023
1 parent dc8ff36 commit 09d2c7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geemap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def _use_eerepr(token="USE_EEREPR"):
print(
"Please restart Jupyter kernel after installation if you encounter any errors when importing geemap."
)
raise Exception(e)
raise e

if _use_eerepr():
import eerepr
Expand Down

0 comments on commit 09d2c7a

Please sign in to comment.