From d39644716e09fd5e2cb07c3c92b2a23b1cd2b8c8 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 29 Mar 2022 16:59:33 +0200 Subject: [PATCH] fix bug --- ereuse_devicehub/resources/action/views/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ereuse_devicehub/resources/action/views/views.py b/ereuse_devicehub/resources/action/views/views.py index 17c9b6b3..afbeb665 100644 --- a/ereuse_devicehub/resources/action/views/views.py +++ b/ereuse_devicehub/resources/action/views/views.py @@ -235,7 +235,7 @@ class ActionView(View): # snapshot_data = decode_snapshot(json) snapshot_data = json - if 'data' in json and not json.get("data", {}).get("dmidecode"): + if 'data' in json and isinstance(json['data'], str): snapshot_data = decode_snapshot(json) if not snapshot_data: