From bde35ced47e4194e7a5dbf323ba6ddc062079cd7 Mon Sep 17 00:00:00 2001 From: James Betker Date: Sun, 20 Sep 2020 19:08:13 -0600 Subject: [PATCH] Fix recursive detach --- codes/utils/util.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/codes/utils/util.py b/codes/utils/util.py index 17d1341b..c663e5d9 100644 --- a/codes/utils/util.py +++ b/codes/utils/util.py @@ -357,6 +357,4 @@ def recursively_detach(v): out = {} for k, t in v.items(): out[k] = recursively_detach(t) - return out - else: - raise ValueError("Unsupported type") \ No newline at end of file + return out \ No newline at end of file