mirror of
https://github.com/Relintai/regression-test-project.git
synced 2024-11-14 10:27:53 +01:00
Fix errors when class not exists (#40)
This commit is contained in:
parent
46b7dbfc5a
commit
237dfcf5cb
@ -261,6 +261,8 @@ func check_if_is_allowed(method_data : Dictionary) -> bool:
|
|||||||
var name_of_class : String = arg["class_name"]
|
var name_of_class : String = arg["class_name"]
|
||||||
if name_of_class.empty():
|
if name_of_class.empty():
|
||||||
continue
|
continue
|
||||||
|
if !ClassDB.class_exists(name_of_class): # This is enum not object, but we allow it
|
||||||
|
continue
|
||||||
if name_of_class in disabled_classes:
|
if name_of_class in disabled_classes:
|
||||||
return false
|
return false
|
||||||
if name_of_class.find("Server") != -1 && ClassDB.class_exists(name_of_class) && !ClassDB.is_parent_class(name_of_class,"Reference"):
|
if name_of_class.find("Server") != -1 && ClassDB.class_exists(name_of_class) && !ClassDB.is_parent_class(name_of_class,"Reference"):
|
||||||
|
Loading…
Reference in New Issue
Block a user