Skip to content

Commit

Permalink
IMPROVEMENT: This error is normal, the first time you create a direct…
Browse files Browse the repository at this point in the history
…ory from template
  • Loading branch information
amilcarlucas committed May 25, 2024
1 parent 5c4123f commit def5644
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MethodicConfigurator/backend_filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from re import sub as re_sub

# from sys import exit as sys_exit
# from logging import debug as logging_debug
from logging import debug as logging_debug
from logging import info as logging_info
from logging import warning as logging_warning
from logging import error as logging_error
Expand Down Expand Up @@ -583,6 +583,8 @@ def __read_last_uploaded_filename(self) -> str:
try:
with open(os_path.join(self.vehicle_dir, 'last_uploaded_filename.txt'), 'r', encoding='utf-8') as file:
return file.read().strip()
except FileNotFoundError as e:
logging_debug("last_uploaded_filename.txt not found: %s", e)
except Exception as e: # pylint: disable=broad-except
logging_error("Error reading last uploaded filename: %s", e)
return ""
Expand Down

0 comments on commit def5644

Please sign in to comment.