Fix a crash when localizing an authentication error for GitLab.
Review Request #12678 — Created Oct. 10, 2022 and submitted — Latest diff uploaded
When attempting to provide an error message for failed authentication for
HTTP HEAD requests,ugettext()
was used to localize the string. The
module had been updated to importgettext
instead ofugettext
, causing
this to crash.This change updates the call to use
gettext()
instead.
Added a unit test, which I verified failed before this fix and passed
after.