Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bliss
bliss
Commits
2ea007a3
Commit
2ea007a3
authored
Dec 21, 2020
by
blissadm_ID31@bibhelm
Committed by
Matias Guijarro
Dec 30, 2020
Browse files
axis: disable controller in case of CommunicationError
parent
192d041b
Changes
1
Hide whitespace changes
Inline
Side-by-side
bliss/common/axis.py
View file @
2ea007a3
...
...
@@ -22,6 +22,7 @@ from bliss.config.channels import Channel
from
bliss.common.logtools
import
log_debug
,
user_print
from
bliss.common.utils
import
rounder
from
bliss.common.utils
import
autocomplete_property
from
bliss.comm.exceptions
import
CommunicationError
import
enum
import
gevent
...
...
@@ -660,7 +661,10 @@ def lazy_init(func):
raise
RuntimeError
(
f
"Axis
{
self
.
name
}
is disabled"
)
try
:
self
.
controller
.
_initialize_axis
(
self
)
except
Exception
:
except
Exception
as
e
:
if
isinstance
(
e
,
CommunicationError
):
# also disable the controller
self
.
controller
.
_disabled
=
True
self
.
_disabled
=
True
raise
else
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment