Message ID | 20180724073342.5738-23-jiyin@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [01/24] pynfs: python3 support plan: print -> print() | expand |
diff --git a/rpc/rpc.py b/rpc/rpc.py index 46c59bf..18ff9fd 100644 --- a/rpc/rpc.py +++ b/rpc/rpc.py @@ -613,7 +613,7 @@ class ConnectionHandler(object): msg_data = record[p.get_position():] # RPC payload # Remember length of the header msg.length = p.get_position() - except (rpc_pack.XDRError, EOFError), e: + except (rpc_pack.XDRError, EOFError) as e: log_t.warn("XDRError: %s, dropping packet" % e) log_t.debug("unpacking raised the following error", exc_info=True) self._notify_drop()