Skip to content

Commit

Permalink
fix(pikspect): don't fail if can't restore tcattrs - 2
Browse files Browse the repository at this point in the history
  • Loading branch information
actionless committed Feb 12, 2021
1 parent 8d8317e commit f3dcd34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pikaur/pikspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def _restore(cls, what: Optional[TcAttrsType] = None) -> None:
try:
termios.tcsetattr(sys.stdin.fileno(), termios.TCSANOW, what)
except termios.error as exc:
print_debug(','.join(arg for arg in exc.args))
print_debug(','.join(str(arg) for arg in exc.args))

@classmethod
def restore(cls, *_whatever) -> None: # pylint:disable=method-hidden
Expand Down

0 comments on commit f3dcd34

Please sign in to comment.