MilesCranmer commited on
Commit
2309acf
1 Parent(s): 102209f

Correct error type

Browse files
Files changed (1) hide show
  1. pysr/sr.py +1 -1
pysr/sr.py CHANGED
@@ -676,7 +676,7 @@ def _check_for_julia_installation():
676
  process.wait()
677
  except FileNotFoundError:
678
  import os
679
- raise ModuleNotFoundError(f"Your current $PATH is: {os.environ['PATH']}\nPySR could not start julia. Make sure julia is installed and on your $PATH.")
680
  process.kill()
681
 
682
 
 
676
  process.wait()
677
  except FileNotFoundError:
678
  import os
679
+ raise RuntimeError(f"Your current $PATH is: {os.environ['PATH']}\nPySR could not start julia. Make sure julia is installed and on your $PATH.")
680
  process.kill()
681
 
682