diff --git a/bin/load_reddit.py b/bin/load_reddit.py index 1b534bcc7..73ae0b6b5 100644 --- a/bin/load_reddit.py +++ b/bin/load_reddit.py @@ -76,6 +76,11 @@ def main(path): if __name__ == '__main__': + import socket + try: + BrokenPipeError + except NameError: + BrokenPipeError = socket.error try: plac.call(main) except BrokenPipeError: