From 1e81aa34b97b9411f6f1797352e833ab05ae296f Mon Sep 17 00:00:00 2001 From: gac-x06da Date: Thu, 30 Jan 2025 12:15:15 +0100 Subject: [PATCH] Plugins were not meant to run standalone --- pxiii_bec/devices/SmarGon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pxiii_bec/devices/SmarGon.py b/pxiii_bec/devices/SmarGon.py index a1a84c3..98d6bfa 100644 --- a/pxiii_bec/devices/SmarGon.py +++ b/pxiii_bec/devices/SmarGon.py @@ -5,6 +5,7 @@ The module provides an object to control the SmarGon goniometer axes at PX III. The SmarGon axes are interfaced as positioners. """ + import time from threading import Thread, Lock import requests @@ -213,7 +214,7 @@ class SmarGonAxis(PVPositioner): r = requests.get(cmd, timeout=1, **kwargs) except TimeoutError: with mutex: - r = requests.get(cmd, timeout=1, **kwargs) + r = requests.get(cmd, timeout=1, **kwargs) if not r.ok: raise RuntimeError( f"[{self.name}] Error getting {address}; reply was {r.status_code} => {r.reason}"