Skip to content

Commit 4f30ac6

Browse files
committed
fix: fix inspectdb syntax err in python3.7
1 parent 66096b5 commit 4f30ac6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clickhouse_backend/management/commands/inspectdb.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ def table2model(table_name):
9696

9797
comment = None
9898
managed_comment = ""
99-
if info := table_info.get(table_name):
99+
info = table_info.get(table_name)
100+
if info:
100101
if info.type == "v":
101102
managed_comment = " # Created from a view. Don't remove."
102103
if connection.features.supports_comments:

0 commit comments

Comments
 (0)