[PATCH 2/9] Replace StandardError with Exception (#1014220)
Martin Kolman
mkolman at redhat.com
Wed Jan 28 17:43:16 UTC 2015
StandardError has been deprecated in Python 3 and using
Exception in its place should do the same thing.
Signed-off-by: Martin Kolman <mkolman at redhat.com>
---
pyanaconda/anaconda_argparse.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyanaconda/anaconda_argparse.py b/pyanaconda/anaconda_argparse.py
index 5c85213..916397f 100644
--- a/pyanaconda/anaconda_argparse.py
+++ b/pyanaconda/anaconda_argparse.py
@@ -349,7 +349,7 @@ class HelpTextParser(object):
with open(self._path) as lines:
for parsed_option, parsed_text in self.read(lines):
self._help_text[parsed_option] = parsed_text
- except StandardError:
+ except Exception: # pylint: disable=broad-except
log.error("error reading help text file %s", self._path)
return self._help_text.get(option, "")
--
2.1.0
More information about the anaconda-patches
mailing list