mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-10-30 22:01:57 +01:00
fix-filemon (#327)
* Update filemon.py * Update config.template * Create alert.txt * Update config.template
This commit is contained in:
1 parent
77a6c57aec
commit
e47e4aa8e1
3 files changed
+3
-2
No files matched your search
@@ -142,6 +142,7 @@ def write_news(content, append=False):
|
||||
async def watch_file():
|
||||
# Watch the file for changes and return the new content when it changes
|
||||
if not os.path.exists(file_monitor_file_path):
|
||||
logger.warning(f"FileMon: File not found: {file_monitor_file_path}")
|
||||
return None
|
||||
else:
|
||||
last_modified_time = os.path.getmtime(file_monitor_file_path)
|
||||
|
||||
Reference in new issue
Block a user