Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cfel-sc-public
Kamzik3
Commits
2bf96bc2
Commit
2bf96bc2
authored
May 19, 2022
by
Jerome Carnis
🦊
Browse files
deviceEigerP11.py: add check for session being None before accessing its attributes
parent
efaacfe7
Changes
1
Hide whitespace changes
Inline
Side-by-side
kamzik3/devices/deviceEigerP11.py
View file @
2bf96bc2
...
...
@@ -352,6 +352,8 @@ class EigerScanner(DeviceScanner):
return
scanner_input
def
_init_new_scan
(
self
,
scanner_input
,
scanner_attributes
,
parent_macro
)
->
None
:
if
kamzik3
.
session
is
None
:
raise
DeviceError
(
"kamzik session is None, can't get the scan number"
)
self
.
logger
.
info
(
"Initiating new scan number {}"
.
format
(
kamzik3
.
session
.
get_value
(
ATTR_SCAN_COUNT
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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