Merge pull request #109 from nix-community/irc-notify

Workaround broken irc library
This commit is contained in:
Jörg Thalheim 2019-01-20 11:08:10 +00:00 committed by GitHub
commit d05907ca6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)