From 4f61ed24087182a22c5bf7b74010af6a85980cc9 Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 7 Jul 2008 10:31:37 +0000 Subject: [PATCH] Issue 0019916: avoid deprecation warning --- bin/salome_utilities.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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:] # -- 2.39.2