Skip to content

Commit

Permalink
remove try catch
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt committed Nov 20, 2024
1 parent f5372fc commit 45664d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gosling/_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
import anywidget
import traitlets as t

try:
_esm = pathlib.Path(__file__).parent / "static" / "widget.js"
except FileNotFoundError:
warnings.warn("GoslingWidget: ESM not found. Must build frontend assets.")
_esm = pathlib.Path(__file__).parent / "static" / "widget.js"

if not _esm.exists():
warnings.warn("Widget front-end code not found. Assuming running in CI.")
_esm = None


Expand Down

0 comments on commit 45664d3

Please sign in to comment.