Plugins were not meant to run standalone
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
The module provides an object to control the SmarGon goniometer axes at PX III.
|
The module provides an object to control the SmarGon goniometer axes at PX III.
|
||||||
The SmarGon axes are interfaced as positioners.
|
The SmarGon axes are interfaced as positioners.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import time
|
import time
|
||||||
from threading import Thread, Lock
|
from threading import Thread, Lock
|
||||||
import requests
|
import requests
|
||||||
@@ -213,7 +214,7 @@ class SmarGonAxis(PVPositioner):
|
|||||||
r = requests.get(cmd, timeout=1, **kwargs)
|
r = requests.get(cmd, timeout=1, **kwargs)
|
||||||
except TimeoutError:
|
except TimeoutError:
|
||||||
with mutex:
|
with mutex:
|
||||||
r = requests.get(cmd, timeout=1, **kwargs)
|
r = requests.get(cmd, timeout=1, **kwargs)
|
||||||
if not r.ok:
|
if not r.ok:
|
||||||
raise RuntimeError(
|
raise RuntimeError(
|
||||||
f"[{self.name}] Error getting {address}; reply was {r.status_code} => {r.reason}"
|
f"[{self.name}] Error getting {address}; reply was {r.status_code} => {r.reason}"
|
||||||
|
|||||||
Reference in New Issue
Block a user