From fb92573840cef9380a553f94341e5f3f1467f051 Mon Sep 17 00:00:00 2001 From: David Fairbrother <DavidFair@users.noreply.github.com> Date: Wed, 7 Jun 2017 13:40:26 +0100 Subject: [PATCH] Re #19794 Removed unused variable --- Testing/SystemTests/tests/analysis/ISIS_PowderGemTest.py | 2 +- Testing/SystemTests/tests/analysis/ISIS_PowderPearlTest.py | 2 +- Testing/SystemTests/tests/analysis/ISIS_PowderPolarisTest.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Testing/SystemTests/tests/analysis/ISIS_PowderGemTest.py b/Testing/SystemTests/tests/analysis/ISIS_PowderGemTest.py index 81090326c21..3219963e0ff 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 ef3c0a17aa9..98ae85c2bdf 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 46ec3d41957..31dd2a92559 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) -- GitLab