zulip/scripts/lib/pythonrc.py
Anders Kaseorg 0e5946ee5a python: Add noqa comments for the specific star imports we allow.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-06-11 15:36:43 -07:00

12 lines
441 B
Python

try:
from django.conf import settings # noqa: F401
from zerver.models import * # noqa: F401, F403
from zerver.lib.actions import * # noqa: F401, F403
from analytics.models import * # noqa: F401, 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.")