Skip to content

Commit f2362a2

Browse files
author
Brian Kohan
committed
try fix linter error
1 parent 34e6640 commit f2362a2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

django_typer/apps.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
patch.apply()
2222

23-
rich: t.Union[ModuleType, None] = None
24-
traceback: t.Union[ModuleType, None] = None
23+
rich: t.Union[ModuleType, None]
24+
traceback: t.Union[ModuleType, None]
2525

2626
try:
2727
import sys
@@ -66,7 +66,8 @@
6666
# installed rich one - we patch it here to make sure!
6767
typer_main._original_except_hook = sys.excepthook
6868
except ImportError:
69-
pass
69+
rich = None
70+
traceback = None
7071

7172

7273
@register("settings")

0 commit comments

Comments
 (0)