mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
Fix invalid ts2utc behavior
This commit is contained in:
@@ -35,10 +35,8 @@ def format_dt(d: datetime, seconds = False) -> str:
|
||||
|
||||
|
||||
def ts2utc(timestamp: int) -> datetime:
|
||||
try:
|
||||
return datetime.fromtimestamp(timestamp, timezone.utc)
|
||||
except Exception:
|
||||
return "unknown"
|
||||
return datetime.fromtimestamp(timestamp, timezone.utc)
|
||||
|
||||
|
||||
def active() -> list[Extension]:
|
||||
if shared.opts.disable_all_extensions == "all":
|
||||
|
||||
Reference in New Issue
Block a user