File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
backend/apps/datasource/models Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ def to_dict(self):
9999class TableSchema :
100100 def __init__ (self , attr1 , attr2 ):
101101 self .tableName = attr1
102- self .tableComment = attr2 if isinstance (attr2 , str ) else attr2 .decode ("utf-8" )
102+ self .tableComment = attr2 if attr2 is None or isinstance (attr2 , str ) else attr2 .decode ("utf-8" )
103103
104104 tableName : str
105105 tableComment : str
@@ -109,7 +109,7 @@ class ColumnSchema:
109109 def __init__ (self , attr1 , attr2 , attr3 ):
110110 self .fieldName = attr1
111111 self .fieldType = attr2
112- self .fieldComment = attr3 if isinstance (attr3 , str ) else attr3 .decode ("utf-8" )
112+ self .fieldComment = attr3 if attr3 is None or isinstance (attr3 , str ) else attr3 .decode ("utf-8" )
113113
114114 fieldName : str
115115 fieldType : str
You can’t perform that action at this time.
0 commit comments