Skip to content

Commit

Permalink
src/sage/features/threejs.py: Do not error out when threejs-version.t…
Browse files Browse the repository at this point in the history
…xt is not present
  • Loading branch information
mkoeppe committed Feb 2, 2024
1 parent 0c390a0 commit 7e60119
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/sage/features/threejs.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,11 @@ def required_version(self):

filename = os.path.join(SAGE_EXTCODE, 'threejs', 'threejs-version.txt')

with open(filename) as f:
return f.read().strip()
try:
with open(filename) as f:
return f.read().strip()
except FileNotFoundError:
return "unknown"


def all_features():
Expand Down

0 comments on commit 7e60119

Please sign in to comment.