diff --git a/Testing/SystemTests/tests/analysis/ISIS_PowderGemTest.py b/Testing/SystemTests/tests/analysis/ISIS_PowderGemTest.py index 81090326c2146ccede6a84bd67f85e015add04b8..3219963e0ffa61e0f9ab3a1503615d25e92f8469 100644 --- a/Testing/SystemTests/tests/analysis/ISIS_PowderGemTest.py +++ b/Testing/SystemTests/tests/analysis/ISIS_PowderGemTest.py @@ -174,5 +174,5 @@ def _try_delete(path): shutil.rmtree(path) else: os.remove(path) - except OSError as err: + except OSError: print ("Could not delete output file at: ", path) diff --git a/Testing/SystemTests/tests/analysis/ISIS_PowderPearlTest.py b/Testing/SystemTests/tests/analysis/ISIS_PowderPearlTest.py index ef3c0a17aa90a57211ad08624e01233429a06b5c..98ae85c2bdf83c26d0490506f38e49cf8c9c02b8 100644 --- a/Testing/SystemTests/tests/analysis/ISIS_PowderPearlTest.py +++ b/Testing/SystemTests/tests/analysis/ISIS_PowderPearlTest.py @@ -173,5 +173,5 @@ def _try_delete(path): shutil.rmtree(path) else: os.remove(path) - except OSError as err: + except OSError: print ("Could not delete output file at: ", path) diff --git a/Testing/SystemTests/tests/analysis/ISIS_PowderPolarisTest.py b/Testing/SystemTests/tests/analysis/ISIS_PowderPolarisTest.py index 46ec3d41957b167a83c2c959deeb6d10e8f25d21..31dd2a9255932297612f8ef15c172392cb72120b 100644 --- a/Testing/SystemTests/tests/analysis/ISIS_PowderPolarisTest.py +++ b/Testing/SystemTests/tests/analysis/ISIS_PowderPolarisTest.py @@ -174,5 +174,5 @@ def _try_delete(path): shutil.rmtree(path) else: os.remove(path) - except OSError as err: + except OSError: print ("Could not delete output file at: ", path)