Files
zulip/scripts/lib/pythonrc.py
Anders Kaseorg 906af61d20 pythonrc: Clean up type ignores.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2019-08-09 16:39:16 -07:00

12 lines
367 B
Python

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