ValvePython / steamctl

🤸 Take control of Steam from your terminal
https://pypi.org/project/steamctl/
MIT License
307 stars 16 forks source link

webapi: BrokenPipe raised when reading part of output #2

Closed rossengeorgiev closed 5 years ago

rossengeorgiev commented 5 years ago

steamctl webapi call ..... | head -1

Traceback (most recent call last):
  File "/steamctl-python/e3/bin/steamctl", line 11, in <module>
    load_entry_point('steamctl', 'console_scripts', 'steamctl')()
  File "/steamctl-python/steamctl/__main__.py", line 44, in main
    rcode = cmd_func(args=args)
  File "/steamctl-python/steamctl/commands/webapi/cmds.py", line 144, in cmd_webapi_call
    json.dump(json.loads(resp), sys.stdout, indent=4, sort_keys=True)
  File "/usr/lib/python3.6/json/__init__.py", line 180, in dump
    fp.write(chunk)
BrokenPipeError: [Errno 32] Broken pipe
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>
BrokenPipeError: [Errno 32] Broken pipe