File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
villas/controller/components/simulators Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -63,19 +63,18 @@ def start(self, payload):
63
63
if fp :
64
64
self .load_cim (fp )
65
65
66
- if self .change_state ('starting' ):
66
+ try :
67
+ self .change_state ('starting' )
67
68
self .logger .info ('Starting simulation...' )
68
69
69
70
self .logger .info (self .sim )
70
- check = self .sim .start ()
71
- self .logger .info (f"+++++{ check } +++++" )
72
- if check is None :
71
+ if self .sim .start () is None :
73
72
self .change_state ('running' )
74
73
else :
75
74
self .change_to_error ('failed to start simulation' )
76
75
self .logger .warn ('Attempt to start simulator failed.'
77
76
'State is %s' , self ._state )
78
- else :
77
+ except Exception as e :
79
78
self .logger .warn ('Attempted to start non-stopped simulator.'
80
79
'State is %s' , self ._state )
81
80
You can’t perform that action at this time.
0 commit comments