Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/blueapi/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import time
from collections.abc import Iterable
from concurrent.futures import Future
from contextlib import suppress
from functools import cached_property
from itertools import chain
from pathlib import Path
Expand Down Expand Up @@ -661,6 +662,11 @@ def reload_environment(

try:
status = self._rest.delete_environment()
# clear the cached plans/devices as they may have changed
with suppress(AttributeError):
del self.plans
with suppress(AttributeError):
del self.devices
except Exception as e:
raise BlueskyRemoteControlError(
"Failed to tear down the environment"
Expand Down
Loading