From 038fcec1f4d9b76441956ac6febc0f7530abb427 Mon Sep 17 00:00:00 2001 From: Arksine Date: Wed, 17 Mar 2021 12:37:04 -0400 Subject: [PATCH] file_manager: update call to "run_with_response" method in metadata. Since "run_with_response" now raises an exception there is no need to inspect the response for a None type. Instead the exception can be handled by the caller directly. Signed-off-by: Eric Callahan --- moonraker/plugins/file_manager.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/moonraker/plugins/file_manager.py b/moonraker/plugins/file_manager.py index a5c30b8..ad08493 100644 --- a/moonraker/plugins/file_manager.py +++ b/moonraker/plugins/file_manager.py @@ -747,8 +747,6 @@ class MetadataStorage: shell_command = self.server.lookup_plugin('shell_command') scmd = shell_command.build_shell_command(cmd, log_stderr=True) result = await scmd.run_with_response(timeout=10.) - if result is None: - raise self.server.error(f"Metadata extraction error") try: decoded_resp = json.loads(result.strip()) except Exception: