Skip to content

Commit

Permalink
add more specific exception in paths.py
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Oviedo <[email protected]>
  • Loading branch information
OVI3D0 committed Jan 21, 2025
1 parent 4d9e324 commit 5ce1700
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion osbenchmark/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,12 @@ def benchmark_confdir():

return benchmark_confdir_path

except Exception as e:
except FileNotFoundError as e:
console.print("Error in benchmark_confdir: ", str(e))
raise
# fallback exception
except Exception as e:
console.print("Unexpected error in benchmark_confdir: ", str(e))

def benchmark_root():
return os.path.dirname(os.path.realpath(__file__))
Expand Down

0 comments on commit 5ce1700

Please sign in to comment.