From 8234765b43bd100266fafcd96fcd7f2cc26ed39e Mon Sep 17 00:00:00 2001 From: Varsha Rao Date: Tue, 14 Apr 2020 14:21:24 +0530 Subject: [PATCH] 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 --- src/tools/cephfs/cephfs-shell | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/cephfs/cephfs-shell b/src/tools/cephfs/cephfs-shell index 692f9b95bc297..effe55a07ab7b 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): """ -- 2.39.5