Salome HOME
venv directory is configured in config_appli.xml file
[modules/kernel.git] / src / Launcher / launcher_proxy.py
index 2b879d837a189f8cfee80ea3b624f813b63a0acb..d757f55edf5f2fb7f51981d415fc6ab7545fffaf 100755 (executable)
@@ -1,6 +1,6 @@
 #! /usr/bin/env python3
 # -*- coding: utf-8 -*-
 #! /usr/bin/env python3
 # -*- coding: utf-8 -*-
-# Copyright (C) 2017-2018  CEA/DEN, EDF R&D
+# Copyright (C) 2017-2021  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -26,7 +26,7 @@ import time
 
 JOB_FILE_NAME = "jobDump.xml"
 
 
 JOB_FILE_NAME = "jobDump.xml"
 
-class Job(object):
+class Job:
   """
   This class makes an easier access to SalomeLauncher.
   It adds an automatic save of the job's parameters after the launch. The save
   """
   This class makes an easier access to SalomeLauncher.
   It adds an automatic save of the job's parameters after the launch. The save
@@ -62,7 +62,7 @@ class Job(object):
       with open(job_file_path, "r") as f:
         job_string = f.read()
       myjob.job_id = launcher.restoreJob(job_string)
       with open(job_file_path, "r") as f:
         job_string = f.read()
       myjob.job_id = launcher.restoreJob(job_string)
-    except:
+    except Exception:
       myjob = None
     return myjob
 
       myjob = None
     return myjob