diff --git a/dts_validator/client.py b/dts_validator/client.py index 97239a2..02bc773 100644 --- a/dts_validator/client.py +++ b/dts_validator/client.py @@ -277,6 +277,7 @@ def get_resource_recursively(collection : DTS_Collection, dts_client : DTS_API) if isinstance(collection, DTS_Resource): return collection else: + resource = None for child in collection.children: if isinstance(child, DTS_Resource): resource = child @@ -295,4 +296,4 @@ def get_collections_recursively(collection, dts_client): for member in collection._json['member'] ] else: - return collection \ No newline at end of file + return collection