Skip to content

Commit

Permalink
Fix: Cannot launch recce server in file mode when file does not exist
Browse files Browse the repository at this point in the history
Signed-off-by: popcorny <celu@infuseai.io>
  • Loading branch information
popcornylu committed Sep 26, 2024
1 parent c5a49cd commit 283fd9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recce/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def from_file(file_path: str, file_type: SupportedFileTypes = SupportedFileTypes

logger.debug(f"Load state file from: '{file_path}'")
if not Path(file_path).is_file():
raise FileNotFoundError(f"State file not found: {file_path}")
return None

io = file_io_factory(file_type)
json_content = io.read(file_path)
Expand Down

0 comments on commit 283fd9f

Please # to comment.