diff --git a/main.py b/main.py index 89968d2..97661cc 100644 --- a/main.py +++ b/main.py @@ -22,15 +22,19 @@ def is_black(black): def dict_equal(dict1, dict2): - if len(dict2) != len(dict1): - return False - for k, v1 in dict1.items(): - v2 = dict2.get(k) - if v1 != v2: + try: + + if len(dict2) != len(dict1): return False - if k == "Point": - if len(v1[0]) != len(v2[0]): + for k, v1 in dict1.items(): + v2 = dict2.get(k) + if v1 != v2: return False + if k == "Point": + if len(v1[0]) != len(v2[0]): + return False + except: + return False return True