No need to typecast the result

This commit is contained in:
Roberto Rosario
2016-04-01 12:33:11 -04:00
parent 3d74bdb590
commit 07cd6d078f

View File

@@ -68,7 +68,7 @@ class KeyManager(models.Manager):
file_object.close()
return io.BytesIO(str(decrypt_result))
return io.BytesIO(decrypt_result.data)
def receive_key(self, key_id):
temporary_directory = tempfile.mkdtemp()