Update alerts reported by LGTM

This commit is contained in:
Griatch 2017-09-23 16:46:30 +02:00
parent ce73bf1a93
commit b3c6e9d2cc
10 changed files with 42 additions and 10 deletions

View file

@ -649,8 +649,8 @@ def cmdhandler(called_by, raw_string, _testing=False, callertype="session", sess
args = raw_string
unformatted_raw_string = "%s%s" % (cmdname, args)
cmdset = None
session = session
account = account
# session = session
# account = account
else:
# no explicit cmdobject given, figure it out
@ -687,7 +687,7 @@ def cmdhandler(called_by, raw_string, _testing=False, callertype="session", sess
sysarg = yield _SEARCH_AT_RESULT([match[2] for match in matches], caller, query=matches[0][0])
raise ExecSystemCommand(syscmd, sysarg)
cmdname, args, cmd = "", "", None
cmdname, args, cmd, raw_cmdname = "", "", None, ""
if len(matches) == 1:
# We have a unique command match. But it may still be invalid.
match = matches[0]