mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
Fixed py3 compat.
This commit is contained in:
@@ -35,7 +35,7 @@ class ManageDKIMKeys(BaseCommand):
|
||||
.format(domain.name, output))
|
||||
public_key = ""
|
||||
for cpt, line in enumerate(output.splitlines()):
|
||||
if cpt == 0 or line.startswith("-----"):
|
||||
if cpt == 0 or line.startswith(b"-----"):
|
||||
continue
|
||||
public_key += line
|
||||
domain.dkim_public_key = public_key
|
||||
|
||||
Reference in New Issue
Block a user