mirror of
https://github.com/flibusta-apps/telegram_files_cache_server.git
synced 2025-12-06 14:45:36 +01:00
Ignore Retry errors
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
import sentry_sdk
|
||||
|
||||
from core.config import env_config
|
||||
|
||||
|
||||
sentry_sdk.init(
|
||||
env_config.SENTRY_DSN,
|
||||
)
|
||||
@@ -1,12 +1,11 @@
|
||||
import sentry_sdk
|
||||
|
||||
from app.services.cache_updater import Retry
|
||||
from core.app import start_app
|
||||
from core.config import env_config
|
||||
|
||||
|
||||
if env_config.SENTRY_DSN:
|
||||
sentry_sdk.init(
|
||||
dsn=env_config.SENTRY_DSN,
|
||||
)
|
||||
sentry_sdk.init(dsn=env_config.SENTRY_DSN, ignore_errors=[Retry])
|
||||
|
||||
app = start_app()
|
||||
|
||||
Reference in New Issue
Block a user