Salome HOME
updated copyright message
[modules/kernel.git] / bin / runSession.py
index fd478e1ccd99642fc35de005be7d70da59284946..39d20593d9f57b44787d1eab9513fa5094d6ec17 100644 (file)
@@ -1,5 +1,5 @@
 #  -*- coding: iso-8859-1 -*-
-# Copyright (C) 2007-2020  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-2023  CEA, EDF, OPEN CASCADE
 #
 # Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -153,7 +153,7 @@ User "myself" connects to remotemachine to run the script concatenate.py in
         try:
             # keep short name for host, for a correct comparison with getShortHostName() later
             host=host.split('.')[0]
-        except:
+        except Exception:
             pass
       else:
         # No running session
@@ -220,7 +220,7 @@ def __runLocalSession(command):
         if proc.returncode != 0:
           any_error = True
           error_code = proc.returncode
-      except:
+      except Exception:
           any_error = True
           pass