Commit e0dbb89b authored by Guido Trotter's avatar Guido Trotter
Browse files

Add missing pylint disable for "except:"



Why it's needed here but not a few lines above is a mistery that only
pylint understands.

Also fix an indentation error in another disable, for the same function.
Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 20405aeb
......@@ -63,7 +63,7 @@ EXIT_NODESETUP_ERROR = constants.EXIT_NODESETUP_ERROR
class ClientRequestWorker(workerpool.BaseWorker):
# pylint: disable-msg=W0221
# pylint: disable-msg=W0221
def RunTask(self, server, message, client):
"""Process the request.
......@@ -95,7 +95,7 @@ class ClientRequestWorker(workerpool.BaseWorker):
client.send_message(reply)
# awake the main thread so that it can write out the data.
server.awaker.signal()
except:
except: # pylint: disable-msg=W0702
logging.exception("Send error")
client.close_log()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment