Replace references of non-existant StandardError with Exception
Subsystems (2)
PATCH 1/1 Replace references of non-existant StandardError with Exception
From: Bryan Schmersal <[email protected]>
Signed-off-by Bryan Schmersal <[email protected]>
--- nfs4.1/nfs4client.py | 2 +- nfs4.1/nfs4commoncode.py | 2 +- nfs4.1/nfs4server.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-)
nfs4.1/nfs4client.py +1 -1
@@ -211,7 +211,7 @@ class NFS4Client(rpc.Client, rpc.Server): except NFS4Replay: # Just pass this on up raise - except StandardError: + except Exception: # Uh-oh. This is a server bug traceback.print_exc() result = encode_status_by_name(opname.lower()[3:],
nfs4.1/nfs4commoncode.py +1 -1
@@ -43,7 +43,7 @@ def %(encode_status)s_by_name(name, status, *args, **kwargs): if tag: result.tag = tag return result - except StandardError: + except Exception: raise pass raise RuntimeError("Problem with name %%r" %% name)
nfs4.1/nfs4server.py +2 -2
@@ -350,7 +350,7 @@ class ClientRecord(object): state.delete() # STUB - what about LAYOUT? # STUB - config whether DELEG OK or not - except StandardError as e: + except Exception as e: log_41.exception("Ignoring problem during state removal") self.state = {} self.lastused = time.time()
@@ -837,7 +837,7 @@ class NFS4Server(rpc.Server): except NFS4Replay: # Just pass this on up raise - except StandardError: + except Exception: # Uh-oh. This is a server bug traceback.print_exc() result = encode_status_by_name(opname.lower()[3:],
Signature · 1 line
2.34.1