Commit ce3bc7ed authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

[gui] ChartSimulControler: Fix ugly typos

parent a1f6a0db
......@@ -223,7 +223,7 @@ class ChartSimulControler(object):
self.sim.chrono.update()
except SimulStopException:
cancel_warn("Simulation reached end of input")
except SimulException , exc:
except SimulException as exc:
cancel_warn("Problem in simulation: " + exc.__str__())
......@@ -246,20 +246,20 @@ class ChartSimulControler(object):
if line_split[0] == "$inputs": # old coded input
try:
self.sim.set_cfile_input_stream(filename)
except Exception , exc:
except Exception as exc:
cancel_warn("Error in coded input file loading" + exc.__str__())
return
elif line_split[0] == "%": # activated input
try:
self.sim.set_act_file_input_stream(filename)
except Exception , exc:
except Exception as exc:
mess = "Error in active input file loading" + exc.__str__()
cancel_warn(mess)
return
else: # assume scenario
try:
self.sim.set_sce_file_input_stream(filename)
except Exception , exc:
except Exception as exc:
cancel_warn("Error in scenario loading" + exc.__str__())
return
......@@ -330,7 +330,7 @@ class ChartSimulControler(object):
except SimulStopException:
cancel_warn("Simulation reached end of input")
return
except SimulException , exc:
except SimulException as exc:
cancel_warn("Problem in simulation:" + exc.__str__())
return
self.model.notify()
......@@ -384,7 +384,7 @@ class ChartSimulControler(object):
if input_file:
try:
self.set_input_file(input_file)
except SimulException, exc:
except SimulException:
self.sim.input_buffer = None
cancel_warn ("old input file inadequate - redefine input")
if self.sim.chrono:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment