diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2023-07-19 14:51:42 -0400 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2023-07-19 14:51:42 -0400 |
commit | f25e5126091f1a25dd610f8ab620be8f8195e73b (patch) | |
tree | d9698f392844fa77af3321f683eea518a69d0a18 | |
parent | 67f2c63f05705876eeaa88ae234a55d44a9b3b0d (diff) | |
download | korg-helpers-f25e5126091f1a25dd610f8ab620be8f8195e73b.tar.gz |
mlmmj-subscriber-sync: also catch OSError
Don't crash on OSError when retrieving external subscriber info (e.g. if
there is a DNS lookup error).
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rwxr-xr-x | mlmmj-subscriber-sync.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlmmj-subscriber-sync.py b/mlmmj-subscriber-sync.py index da2c2a6..2d9a8c4 100755 --- a/mlmmj-subscriber-sync.py +++ b/mlmmj-subscriber-sync.py @@ -187,7 +187,7 @@ def subscriber_sync(cmdargs: argparse.Namespace) -> None: mldir = os.path.join(cmdargs.mlmmj_spool_dir, entry) try: csum, remote = get_remote_subscribers(mldir) - except (FileNotFoundError, FileExistsError, TimeoutError): + except (FileNotFoundError, FileExistsError, TimeoutError, OSError): continue ml = entry logger.info('Processing %s', ml) |