Skip to content

Commit 7d5d426

Browse files
committed
fix: actually check if remote mode is available
This used to make sense, but when we moved the BPlan import to a separate file, it stopped making sense. Signed-off-by: Sofia Donato Ferreira <[email protected]>
1 parent cfd5306 commit 7d5d426

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/sophys/cli/core/magics/plan_magics.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@
1313

1414
from . import in_debug_mode, NamespaceKeys, get_from_namespace, add_to_namespace
1515

16-
try:
17-
remote_control_available = True
18-
except ImportError:
19-
remote_control_available = False
16+
17+
remote_control_available = importlib.util.find_spec("bluesky_queueserver_api") is not None
2018

2119

2220
class ModeOfOperation(IntEnum):

0 commit comments

Comments
 (0)