removed unwanted changes
This commit is contained in:
parent
05e68c2b27
commit
6ea91e542d
@ -15,7 +15,7 @@ repos:
|
||||
rev: v2.3.0
|
||||
hooks:
|
||||
- id: codespell
|
||||
args: ["reflex", "te"]
|
||||
args: ["reflex"]
|
||||
|
||||
# Run pyi check before pyright because pyright can fail if pyi files are wrong.
|
||||
- repo: local
|
||||
|
@ -180,7 +180,7 @@ def save_error(error: Exception) -> str:
|
||||
timestamp = datetime.now().strftime("%Y-%m-%d__%H-%M-%S")
|
||||
constants.Reflex.LOGS_DIR.mkdir(parents=True, exist_ok=True)
|
||||
log_path = constants.Reflex.LOGS_DIR / f"error_{timestamp}.log"
|
||||
traceback.TracebackException.from_exception(error)
|
||||
traceback.TracebackException.from_exception(error).print(file=log_path.open("w+")) # type: ignore[attr-defined]
|
||||
return str(log_path)
|
||||
|
||||
|
||||
|
@ -6,15 +6,14 @@ import asyncio
|
||||
import dataclasses
|
||||
import multiprocessing
|
||||
import platform
|
||||
import sys
|
||||
import warnings
|
||||
from contextlib import suppress
|
||||
|
||||
from reflex.config import environment
|
||||
|
||||
if sys.version_info >= (3, 11):
|
||||
from datetime import UTC, datetime
|
||||
else:
|
||||
try:
|
||||
from datetime import UTC, datetime # type: ignore[attr-defined]
|
||||
except ImportError:
|
||||
from datetime import datetime
|
||||
|
||||
UTC = None
|
||||
|
Loading…
Reference in New Issue
Block a user