From 2583f0bc0d2115b4d649920c97d27d0876ead824 Mon Sep 17 00:00:00 2001 From: franck403 <79372051+franck403@users.noreply.github.com> Date: Wed, 5 Jul 2023 14:05:43 -0400 Subject: [PATCH] Update raspberrypi.py --- raspberrypi_control/raspberrypi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raspberrypi_control/raspberrypi.py b/raspberrypi_control/raspberrypi.py index b37cf35..a84d0af 100644 --- a/raspberrypi_control/raspberrypi.py +++ b/raspberrypi_control/raspberrypi.py @@ -1460,7 +1460,7 @@ def run_command(command=None,display=False): ) ssh_controller.disconnect() return output[-1] - except: + except Exception: import os return os.system(command) else: