1
0
mirror of https://github.com/calebstewart/pwncat.git synced 2024-11-30 12:24:14 +01:00

fixed handling of None results in run command

This commit is contained in:
Caleb Stewart 2021-11-28 16:27:58 -05:00
parent 54a46521c1
commit 13eeeefa36

View File

@ -89,7 +89,7 @@ class Command(CommandDefinition):
if isinstance(result, list): if isinstance(result, list):
result = [r for r in result if not r.hidden] result = [r for r in result if not r.hidden]
elif result.hidden: elif result is not None and result.hidden:
result = None result = None
if args.raw: if args.raw: