This commit is contained in:
Olivier Mangin 2017-05-11 15:34:14 -04:00
parent bbf3d3d0c8
commit d4c18ad1a4

View File

@ -7,7 +7,7 @@ from pubs import pubs_cmd
try:
pubs_cmd.execute()
except IOError:
except BrokenPipeError:
# stdout or stderr has been closed, cleaning up
try:
sys.stdout.close()