Commit 7f2b4da4 authored by Tijmen de Mes's avatar Tijmen de Mes

Fixed syntax

parent 06d4f18e
...@@ -713,7 +713,7 @@ class MessageManager(object, metaclass=Singleton): ...@@ -713,7 +713,7 @@ class MessageManager(object, metaclass=Singleton):
if content_type.lower() == 'text/pgp-private-key': if content_type.lower() == 'text/pgp-private-key':
if not account.sms.enable_pgp: if not account.sms.enable_pgp:
return return
regex = "(?P<public_key>-----BEGIN PGP PUBLIC KEY BLOCK-----.*-----END PGP PUBLIC KEY BLOCK-----)" regex = "(?P<public_key>-----BEGIN PGP PUBLIC KEY BLOCK-----.*-----END PGP PUBLIC KEY BLOCK-----)"
matches = re.search(regex, body, re.DOTALL) matches = re.search(regex, body, re.DOTALL)
public_key = matches.group('public_key') public_key = matches.group('public_key')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment