From: Varsha Rao Date: Tue, 14 Apr 2020 08:51:24 +0000 (+0530) Subject: cephfs-shell: Remove undefined exception instance X-Git-Tag: v15.2.4~24^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=41b92d58442f74afc2e75b2720086bb875938d07;p=ceph.git cephfs-shell: Remove undefined exception instance This patch fixes the following flake8 error: F821 undefined name 'e' Fixes: https://tracker.ceph.com/issues/44645 Signed-off-by: Varsha Rao (cherry picked from commit 8234765b43bd100266fafcd96fcd7f2cc26ed39e) --- diff --git a/src/tools/cephfs/cephfs-shell b/src/tools/cephfs/cephfs-shell index f37f14054783..007bd4e5d9ae 100755 --- a/src/tools/cephfs/cephfs-shell +++ b/src/tools/cephfs/cephfs-shell @@ -1357,7 +1357,7 @@ class CephFSShell(Cmd): else: self.perror("snapshot can only be created or deleted; check - " "help snap") - self.exit_code = e.get_error_code() + self.exit_code = 1 def do_help(self, line): """