Skip to content

Commit

Permalink
Remove superfluous try-except
Browse files Browse the repository at this point in the history
  • Loading branch information
oxve committed May 14, 2024
1 parent ee53c69 commit a84f716
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions starboard/build/is_on_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ def is_on_same_path(file_path):
Returns:
True if the file is in the first entry on PYTHONPATH, False otherwise.
"""
try:
return os.path.abspath(file_path).startswith(SRC_ROOT)
except ImportError:
return False
return os.path.abspath(file_path).startswith(SRC_ROOT)


if __name__ == '__main__':
Expand Down

0 comments on commit a84f716

Please sign in to comment.