Skip to content

Commit

Permalink
Fix TypeError triggered by unexpected return from callable alias
Browse files Browse the repository at this point in the history
  • Loading branch information
laloch committed Jul 28, 2020
1 parent c0089a4 commit 1ad143f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xonsh/proc.py
Expand Up @@ -1203,12 +1203,12 @@ def parse_proxy_return(r, stdout, stderr):
elif isinstance(r, cabc.Sequence):
rlen = len(r)
if rlen > 0 and r[0] is not None:
stdout.write(r[0])
stdout.write(str(r[0]))
stdout.flush()
if rlen > 1 and r[1] is not None:
stderr.write(r[1])
stderr.write(str(r[1]))
stderr.flush()
if rlen > 2 and r[2] is not None:
if rlen > 2 and isinstance(r[2], int):
cmd_result = r[2]
elif r is not None:
# for the random object...
Expand Down

0 comments on commit 1ad143f

Please sign in to comment.