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: