perhaps
if type(referer) != unicode: referer = referer.decode('utf8', errors='replace')
instead, which will replace the bad data but leave the rest intact.
« Back to merge proposal
perhaps
if type(referer) != unicode: decode( 'utf8', errors='replace')
referer = referer.
instead, which will replace the bad data but leave the rest intact.