@@ -649,15 +649,18 @@ def __process_model_node(self, model_node, validation_location):
649
649
def __validate_attributes (self , attributes_dict , valid_attr_infos , validation_location ):
650
650
_method_name = '__validate_attributes'
651
651
652
- self ._logger .finest ('attributes_dict={0}' , str (attributes_dict ),
652
+ self ._logger .finest ('validation_location={0}, attributes_dict={0}' , str ( validation_location ) , str (attributes_dict ),
653
653
class_name = _class_name , method_name = _method_name )
654
654
655
+ model_folder_path = self ._aliases .get_model_folder_path (validation_location )
656
+ if not isinstance (attributes_dict , dict ):
657
+ self ._logger .severe ('WLSDPLY-05038' , model_folder_path , class_name = _class_name , method_name = _method_name )
658
+ return
659
+
655
660
path_tokens_attr_keys = self ._aliases .get_model_uses_path_tokens_attribute_names (validation_location )
656
661
self ._logger .finer ('WLSDPLY-05013' , str (validation_location ), str (path_tokens_attr_keys ),
657
662
class_name = _class_name , method_name = _method_name )
658
663
659
- model_folder_path = self ._aliases .get_model_folder_path (validation_location )
660
-
661
664
for attribute_name , attribute_value in attributes_dict .iteritems ():
662
665
self .__validate_attribute (attribute_name , attribute_value , valid_attr_infos , path_tokens_attr_keys ,
663
666
model_folder_path , validation_location )
0 commit comments