Salome HOME
venv directory is configured in config_appli.xml file
[modules/kernel.git] / src / Launcher / launcher_proxy.py
index 549d40d83eb8b11ee077c71399b4d42953a84f6f..d757f55edf5f2fb7f51981d415fc6ab7545fffaf 100755 (executable)
@@ -1,6 +1,6 @@
 #! /usr/bin/env python3
 # -*- coding: utf-8 -*-
-# Copyright (C) 2017-2020  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
@@ -26,7 +26,7 @@ import time
 
 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
@@ -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)
-    except:
+    except Exception:
       myjob = None
     return myjob