add missing double quote

Opening double quote was missed during the recent hence, showing the below error:

auth.split(b":", 1)[0].decode(UTF-8", "replace")
SyntaxError: unterminated string literal (detected at line 472)
This commit is contained in:
Chandan CH 2023-05-08 11:28:30 +05:30 committed by GitHub
parent 506d014dd4
commit ed9729a826
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -469,7 +469,7 @@ class Logger(object):
# so we need to convert it to a byte string
auth = base64.b64decode(auth[1].strip().encode('utf-8'))
# b64decode returns a byte string
auth.split(b":", 1)[0].decode(UTF-8", "replace")
auth.split(b":", 1)[0].decode("UTF-8", "replace")
except (TypeError, binascii.Error, UnicodeDecodeError) as exc:
self.debug("Couldn't get username: %s", exc)
return user