From 0a25f50afb75b66a88301df776a30cf37979317c Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Mar 14 2019 14:19:34 +0000 Subject: Work with strings, not bytes --- diff --git a/src/FedoraReview/url_bug.py b/src/FedoraReview/url_bug.py index f3110fe..f1ade07 100644 --- a/src/FedoraReview/url_bug.py +++ b/src/FedoraReview/url_bug.py @@ -51,7 +51,7 @@ class UrlBug(AbstractBug): hrefs = [l.get('href') for l in links if l.get('href')] found = [] for href in reversed(hrefs): - href = href.encode('ascii', 'ignore') + href = href.encode('ascii', 'ignore').decode('ascii') if '?' in href: href = href[0: href.find('?')] if not href.startswith('http://') and \