From: vsr Date: Mon, 7 Jul 2008 10:31:37 +0000 (+0000) Subject: Issue 0019916: avoid deprecation warning X-Git-Tag: TG_TRIPOLI_qt4_porting~39 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4f61ed24087182a22c5bf7b74010af6a85980cc9;hp=7f19df7a744dac40eb9f5d21b75fa6dcd5752e98;p=modules%2Fkernel.git Issue 0019916: avoid deprecation warning --- 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:] #