1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-03-13 08:58:35 +03:00

small fix for pylance complain

This commit is contained in:
Adolfo Gómez García 2023-02-26 21:27:07 +01:00
parent e8022389fb
commit bcdbfa67d7
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23

View File

@ -164,7 +164,7 @@ class TOTP_MFA(mfas.MFA):
uri = totp.provisioning_uri()
img = qrcode.make(uri)
imgByteStream = io.BytesIO()
img.save(imgByteStream, format='PNG')
img.save(imgByteStream, format='PNG') # type: ignore # pylance complains abot format, but it is ok
# Convert to base64 to be used in html img tag
imgByteArr = imgByteStream.getvalue()
imgData = 'data:image/png;base64,' + base64.b64encode(imgByteArr).decode(