Don't call tobytes on bytes

This commit is contained in:
decentral1se 2021-04-15 14:27:44 +02:00
parent aaf365dba2
commit 63c7384e50
Signed by: decentral1se
GPG Key ID: 92DAD76BD9567B8A

View File

@ -9,8 +9,7 @@ class VAPIDKeyset(models.Model):
def __str__(self):
return "public_key:{}... private_key:{}...".format(
self.public_key[:10],
self.private_key.tobytes()[:10]
self.public_key[:10], self.private_key[:10]
)
@property