From 8bfc27ab4248c6aff98713d3c1a910ca55713127 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 20 Jan 2019 11:03:00 +0000 Subject: [PATCH] Workaround broken irc library --- nur/combine.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nur/combine.py b/nur/combine.py index 10c3f7306..f9a299ead 100644 --- a/nur/combine.py +++ b/nur/combine.py @@ -185,7 +185,11 @@ def combine_command(args: Namespace) -> None: notifications = update_combined(combined_path) if args.irc_notify: - from .irc_notify import send + try: + from .irc_notify import send + except ImportError as e: + print(f"failed to import irc_notify, skipping notification: {e}") + return try: send(args.irc_notify, notifications)