# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-2024 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
elif "version" in key.lower() or mod in key:
_salome_versions[ mod ][ 0 ] = val
pass
- except:
+ except Exception:
pass
v = _salome_versions[ mod ][ 0 ]
if full and v is not None:
ver = getVersion( mod )
try:
return ver.split( "." )[ 0 ]
- except:
+ except Exception:
pass
return None
ver = getVersion( mod )
try:
return ver.split( "." )[ 1 ]
- except:
+ except Exception:
pass
return None
ver = getVersion( mod )
try:
return ver.split( "." )[ 2 ]
- except:
+ except Exception:
pass
return None
"""
try:
major = int( getVersionMajor( mod ) )
- except:
+ except Exception:
major = 0
pass
try:
minor = int( getVersionMinor( mod ) )
- except:
+ except Exception:
minor = 0
pass
try:
rel = int( getVersionRelease( mod ) )
- except:
+ except Exception:
rel = 0
pass
return [ major, minor, rel ]