From f31de8d147b078abcd53a53be8b3bcc3068e8730 Mon Sep 17 00:00:00 2001 From: Edward Powell Date: Mon, 17 Feb 2014 14:30:18 -0500 Subject: [PATCH] [url] Account for bad IRI edge case Closes #447 --- url.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/url.py b/url.py index de456bbe68..cfe4140de8 100644 --- a/url.py +++ b/url.py @@ -142,7 +142,10 @@ def process_urls(bot, trigger, urls): for url in urls: if not url.startswith(exclusion_char): # Magic stuff to account for international domain names - url = iri_to_uri(url) + try: + url = iri_to_uri(url) + except: + pass # First, check that the URL we got doesn't match matched = check_callbacks(bot, trigger, url, False) if matched: