From a5cf3b3975bd16590dc644d083430f83fd68a983 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 23 Sep 2022 21:50:09 -0700 Subject: [PATCH] config: Remove Django base class from ZulipSettingsError. This breaks an import cycle that prevented django-stubs from inferring types for django.conf.settings. Signed-off-by: Anders Kaseorg --- zproject/config.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/zproject/config.py b/zproject/config.py index 70130c262f..ba56ccbd11 100644 --- a/zproject/config.py +++ b/zproject/config.py @@ -2,10 +2,8 @@ import configparser import os from typing import Optional, overload -from django.core.exceptions import ImproperlyConfigured - -class ZulipSettingsError(ImproperlyConfigured): +class ZulipSettingsError(Exception): pass