Files
zulip/scripts/lib/pythonrc.py
Anders Kaseorg 9d2d6c8eb7 ruff: Fix M001 Unused noqa directive.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2022-11-03 12:10:15 -07:00

13 lines
374 B
Python

try:
from django.conf import settings # noqa: F401
from analytics.models import * # noqa: F403
from zerver.models import * # noqa: F403
except Exception:
import traceback
print("\nException importing Zulip core modules on startup!")
traceback.print_exc()
else:
print("\nSuccessfully imported Zulip settings, models, and actions functions.")