From 47b2c0d4cc5f593c2507278feee3455ef2de2778 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Cl=C3=A9rice?= <1929830+PonteIneptique@users.noreply.github.com> Date: Tue, 7 Apr 2026 19:24:39 +0200 Subject: [PATCH] Update client.py Avoid a unknown resource variable I do not know what this function does, but this is a fix. --- dts_validator/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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