Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue340 - live TOML handling #383

Merged
merged 1 commit into from
Aug 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/readfish/entry_points/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
# Core imports
from __future__ import annotations
import argparse
import traceback
from packaging.version import Version
import logging
import time
Expand Down Expand Up @@ -279,8 +280,10 @@ def reload_toml(self, last_toml_mtime: float) -> float:
self.live_toml, self.client.channel_count, self.logger
)
# FIXME: Broad exception
except Exception:
pass
except Exception as e:
if hasattr(e, "exceptions"):
self.logger.error(getattr(e, "exceptions"))
self.logger.error(traceback.format_exc())
last_toml_mtime = self.live_toml.stat().st_mtime
return last_toml_mtime

Expand Down
Loading