]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephfs-shell: Remove unused variable 'e'
authorVarsha Rao <varao@redhat.com>
Thu, 6 Jun 2019 15:24:21 +0000 (20:54 +0530)
committerVarsha Rao <varao@redhat.com>
Thu, 6 Jun 2019 15:55:53 +0000 (21:25 +0530)
Fixes: https://tracker.ceph.com/issues/40191
Signed-off-by: Varsha Rao <varao@redhat.com>
src/tools/cephfs/cephfs-shell

index 46076112a5f599836ba0dbbcf6694669f3515ac2..2f71a4795d38b803cb1070891041033f12fb9a12 100755 (executable)
@@ -422,7 +422,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"