Skip to content

Commit

Permalink
Change exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
BlakeGardner committed Jan 1, 2024
1 parent 8679cf0 commit f3de781
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unmanic/libs/eventmonitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def on_any_event(self, event):
# Wait for file to be fully written to disk
self._wait_for_file_stabilization(event.src_path)
except Exception as e:
self._log("An error occurred while waiting for file stabilization: {}".format(str(e)), level="error")
self._log(str(e), level="error")
with threading.Lock():
self.active_files.discard(event.src_path) # Remove the file from the set
return
Expand All @@ -127,7 +127,7 @@ def on_any_event(self, event):
def _wait_for_file_stabilization(self, file_path, timeout_seconds=600):
"""
Wait for the file to be fully written to disk (i.e., file size becomes stable).
:param file_path: Path to the file to check.
:param timeout_seconds: Timeout in seconds.
:raises: TimeoutError if file stabilization times out.
Expand Down

0 comments on commit f3de781

Please sign in to comment.