iwla

iwla Commit Details

Date:2017-01-29 09:12:47 (4 years 5 months ago)
Author:Grégory Soutadé
Branch:dev, master
Commit:038e4850817a9c82abab42abf50f734c1e8df48b
Parents: 4b5fee00e485075b68f88b04ae3cee6bdf7529ff
Message:Prevent from error when decoding key phrases

Changes:
Mplugins/post_analysis/referers.py (1 diff)

File differences

plugins/post_analysis/referers.py
112112
113113
114114
115
115
116
117
118
119
116120
117121
118122
groups = key_phrase_re.match(p)
if groups:
key_phrase = groups.groupdict()['key_phrase']
key_phrase = urllib.unquote_plus(key_phrase).decode('utf8')
try:
key_phrase = urllib.unquote_plus(key_phrase).decode('utf8')
except Exception, e:
print(e)
continue
if not key_phrase in key_phrases.keys():
key_phrases[key_phrase] = 1
else:

Archive Download the corresponding diff file

Branches

Tags