From 2da9c3278d938d4407837b5617cd72f2be2c4204 Mon Sep 17 00:00:00 2001 From: Varsha Rao Date: Thu, 6 Jun 2019 20:54:21 +0530 Subject: [PATCH] cephfs-shell: Remove unused variable 'e' Fixes: https://tracker.ceph.com/issues/40191 Signed-off-by: Varsha Rao (cherry picked from commit 6a0a5ed83d6d3e2bb9977bda2c773d5d5b6accf7) --- 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 d20ef3137ed71..94aac74e07a51 100644 --- a/src/tools/cephfs/cephfs-shell +++ b/src/tools/cephfs/cephfs-shell @@ -425,7 +425,7 @@ class CephFSShell(Cmd): res = None try: o_mode = int(values, base=8) - except ValueError as e: + except ValueError: res = re.match('((u?g?o?)|(a?))(=)(r?w?x?)', values) if res is None: parser.error("invalid mode: %s\n" -- 2.39.5