Skip to content

Commit

Permalink
Handle broken pipe more gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
lowell80 committed Jul 16, 2020
1 parent 7426247 commit e19efe9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ksconf/commands/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,11 @@ def launch(self, args):
return_code = self.run(args)
except KsconfCmdReadConfException as e:
return_code = e.returncode
except BrokenPipeError as e: # pragma: no cover
try:
self.stderr.write("Broken pipe\n")
except:
pass
except BaseException: # pragma: no cover
exc = sys.exc_info()
raise
Expand Down

0 comments on commit e19efe9

Please sign in to comment.