Fix Command.run with no arguments

This commit is contained in:
Florian Bruhin 2016-07-08 20:13:35 +02:00
parent 2136d00aa2
commit b07cca023b

View File

@ -501,6 +501,9 @@ class Command:
dbgout = ["command called:", self.name]
if args:
dbgout.append(str(args))
elif args is None:
args = []
if count is not None:
dbgout.append("(count={})".format(count))
log.commands.debug(' '.join(dbgout))