handle broken pipes

This commit is contained in:
Mike Fährmann 2016-08-05 10:25:31 +02:00
parent 5a13ac8e3d
commit b0ea9021dc
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -17,7 +17,7 @@ __email__ = "mike_faehrmann@web.de"
import os
import argparse
import json
from . import config, extractor, job
from . import config, extractor, job, exception
def build_cmdline_parser():
parser = argparse.ArgumentParser(
@ -120,3 +120,9 @@ def main():
except KeyboardInterrupt:
print("\nKeyboardInterrupt")
except BrokenPipeError:
pass
except IOError as e:
import errno
if e.errno != errno.EPIPE:
raise