From f6613f95533180c957ab98e6ba51ea5ac9e1a706 Mon Sep 17 00:00:00 2001 From: Tom Barron Date: Tue, 29 Jan 2019 08:02:19 -0500 Subject: [PATCH] Fix pylint errors for ganesha manager Closes-bug: #1813800 Change-Id: Id9858f9e016cef2d82d19df24947ae07eba916da --- manila/share/drivers/ganesha/manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manila/share/drivers/ganesha/manager.py b/manila/share/drivers/ganesha/manager.py index da27b8f9bc..9fe2047fe8 100644 --- a/manila/share/drivers/ganesha/manager.py +++ b/manila/share/drivers/ganesha/manager.py @@ -481,7 +481,7 @@ class GaneshaManager(object): else: _mkindex_called = True self._mkindex() - except Exception as e: + except exception.ProcessExecutionError as e: for u in undos: u() if not self.ganesha_rados_store_enable and not _mkindex_called: @@ -499,7 +499,7 @@ class GaneshaManager(object): try: self._dbus_send_ganesha("UpdateExport", "string:" + path, "string:EXPORT(Export_Id=%d)" % xid) - except Exception as e: + except exception.ProcessExecutionError as e: # Revert the export update. self._write_export(name, old_confdict) raise exception.GaneshaCommandFailure(