Also removes ignore of broken pipe from 5ca090668
since this is not
handling it the right way (see #60).
main
parent
d4c18ad1a4
commit
a02f67f133
@ -1,19 +1,7 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# -*- coding:utf-8 -*-
|
# -*- coding:utf-8 -*-
|
||||||
|
|
||||||
import sys
|
|
||||||
|
|
||||||
from pubs import pubs_cmd
|
from pubs import pubs_cmd
|
||||||
|
|
||||||
try:
|
|
||||||
pubs_cmd.execute()
|
pubs_cmd.execute()
|
||||||
except BrokenPipeError:
|
|
||||||
# stdout or stderr has been closed, cleaning up
|
|
||||||
try:
|
|
||||||
sys.stdout.close()
|
|
||||||
except IOError:
|
|
||||||
pass
|
|
||||||
try:
|
|
||||||
sys.stderr.close()
|
|
||||||
except IOError:
|
|
||||||
pass
|
|
||||||
|
Loading…
Reference in new issue