mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
User: Fix GPG auth on Python 3. Closes GH-541. Closes GH-542.
This commit is contained in:
parent
1f2d51dfc5
commit
b7bfd64bc4
@ -490,7 +490,10 @@ class User(callbacks.Plugin):
|
||||
Check the GPG signature at the <url> and authenticates you if
|
||||
the key used is associated to a user."""
|
||||
self._expire_tokens()
|
||||
match = self._auth_re.search(utils.web.getUrl(url))
|
||||
content = utils.web.getUrl(url)
|
||||
if sys.version_info[0] >= 3 and isinstance(content, bytes):
|
||||
content = content.decode()
|
||||
match = self._auth_re.search(content)
|
||||
if not match:
|
||||
irc.error(_('Signature or token not found.'), Raise=True)
|
||||
data = match.group(0)
|
||||
|
Loading…
Reference in New Issue
Block a user