From a84f7164fe96f0927a9dca6024e035084034ce41 Mon Sep 17 00:00:00 2001 From: Oscar Vestlie Date: Tue, 14 May 2024 11:47:38 -0700 Subject: [PATCH] Remove superfluous try-except --- starboard/build/is_on_path.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/starboard/build/is_on_path.py b/starboard/build/is_on_path.py index 76dad2dabad9..df8c126e59a9 100644 --- a/starboard/build/is_on_path.py +++ b/starboard/build/is_on_path.py @@ -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__':