refactorings

This commit is contained in:
Colombo
2019-12-22 19:00:59 +04:00
parent e0e8970ab9
commit 754d6c385c
13 changed files with 243 additions and 104 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ class IEPolys:
@staticmethod
def load(ie_polys=None):
obj = IEPolys()
if ie_polys is not None:
if ie_polys is not None and isinstance(ie_polys, list):
for (type, points) in ie_polys:
obj.add(type)
obj.n_list().set_points(points)