Fix error when using @arg for stdin and no match found
This commit is contained in:
parent
aaf94b61ed
commit
b7e8bd2faf
@ -307,7 +307,9 @@ class Boss:
|
||||
return w.buffer_as_text()
|
||||
|
||||
if args[0].startswith('@'):
|
||||
stdin = data_for_at(args[0]).encode('utf-8')
|
||||
stdin = data_for_at(args[0]) or None
|
||||
if stdin is not None:
|
||||
stdin = stdin.encode('utf-8')
|
||||
del args[0]
|
||||
|
||||
cmd = []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user