Skip to content

Commit ea834be

Browse files
committed
fixed issue
1 parent 48d44a5 commit ea834be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sempy_labs/_list_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def list_tables(
240240
"Columns": sum(
241241
1 for c in t.Columns if str(c.Type) != "RowNumber"
242242
),
243-
"% DB": round((total_size / model_size) * 100, 2),
243+
"% DB": round((total_size / model_size) * 100, 2) if model_size not in (0, None, float('nan')) else 0.0,
244244
}
245245
)
246246

0 commit comments

Comments
 (0)