mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-02-14 14:01:51 +00:00
Move `config.local.py` to `config_local.py`, since `.` is invalid in filenames for imports
14 lines
257 B
Python
14 lines
257 B
Python
import os
|
|
|
|
import sentry_sdk
|
|
from sentry_sdk.integrations.rq import RqIntegration
|
|
|
|
if os.path.exists('config_local.py'):
|
|
import config_local as config
|
|
else:
|
|
import config
|
|
|
|
sentry_sdk.init(
|
|
config.SENTRY_DSN,
|
|
integrations=[RqIntegration()]
|
|
)
|