File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed
mxcubeweb/core/components Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -15,19 +15,21 @@ def get_available_workflows(self):
15
15
workflows = {}
16
16
beamline = HWR .beamline
17
17
18
- try :
19
- for wf in beamline .workflow .get_available_workflows ():
20
- # Rename name and path to wfname and wfpath in order to avoid name
21
- # clashes
22
- wf ["wfname" ] = wf .pop ("name" )
23
- wf ["wfpath" ] = wf .pop ("path" )
24
-
25
- workflows [wf ["wfname" ]] = wf
26
- except Exception :
27
- msg = "Problem with available workflows or naming/pathing: {wf.name}"
28
- hwr_logger .exception (msg )
29
-
30
- if getattr (beamline , "gphl_workflow" , None ):
18
+ if beamline .workflow :
19
+ # Add workflows if available
20
+ try :
21
+ for wf in beamline .workflow .get_available_workflows ():
22
+ # Rename name and path to wfname and wfpath in order to avoid name
23
+ # clashes
24
+ wf ["wfname" ] = wf .pop ("name" )
25
+ wf ["wfpath" ] = wf .pop ("path" )
26
+
27
+ workflows [wf ["wfname" ]] = wf
28
+ except Exception :
29
+ msg = "Problem with available workflows or naming/pathing: {wf.name}"
30
+ hwr_logger .exception (msg )
31
+
32
+ if beamline .gphl_workflow :
31
33
# Add Global Phasing workflows if available
32
34
workflows .update (beamline .gphl_workflow .get_available_workflows ())
33
35
You can’t perform that action at this time.
0 commit comments