X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=bin%2Fsalome_utilities.py;h=b4349cd203083bdfb1fc4bc8abdf02d5c3784ea4;hb=4f61ed24087182a22c5bf7b74010af6a85980cc9;hp=e22215fc1658b7664272cbe992d276d96db30ec2;hpb=7f19df7a744dac40eb9f5d21b75fa6dcd5752e98;p=modules%2Fkernel.git diff --git a/bin/salome_utilities.py b/bin/salome_utilities.py index e22215fc1..b4349cd20 100644 --- a/bin/salome_utilities.py +++ b/bin/salome_utilities.py @@ -60,7 +60,7 @@ def _try_bool( arg ): if v in [ "yes", "y", "true" ]: return True elif v in [ "no", "n", "false" ]: return False pass - raise "Not boolean value" + raise Exception("Not boolean value") # --- @@ -323,7 +323,7 @@ def generateFileName( dir, prefix = None, suffix = None, extension = None, pass # raise an exception if file name is empty if not filename: - raise "Empty file name" + raise Exception("Empty file name") # if extension is not None and extension.startswith("."): extension = extension[1:] #