Skip to content
Snippets Groups Projects
Unverified Commit 44697192 authored by Martin Trigaux's avatar Martin Trigaux
Browse files

[FIX] pad: pad content encoding

Avoid error during pad creation

TypeError: cannot use a string pattern on a bytes-like object
parent e1b0e338
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,7 @@ class PadCommon(models.AbstractModel):
except:
_logger.warning("No url found '%s'.", url)
else:
mo = re.search('<body>(.*)</body>', r.content, re.DOTALL)
mo = re.search('<body>(.*)</body>', r.content.decode(), re.DOTALL)
if mo:
content = mo.group(1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment