Skip to content

Commit

Permalink
[url] Account for bad IRI edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
embolalia committed Feb 17, 2014
1 parent 7f3e805 commit f31de8d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion url.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f31de8d

Please sign in to comment.