From ad3e4ce4e215bb431a28a65175883f99c39475a0 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Sun, 24 Jan 2021 22:33:35 +0100 Subject: [PATCH] Use default language for PyLint if non is specified --- lib/py_lint_adapter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/py_lint_adapter.rb b/lib/py_lint_adapter.rb index ea285d5a..4e5ea235 100644 --- a/lib/py_lint_adapter.rb +++ b/lib/py_lint_adapter.rb @@ -45,7 +45,7 @@ class PyLintAdapter < TestingFrameworkAdapter # The message will be translated once the results were stored in the database # See SubmissionScoring for actual function call - I18n.locale = locale + I18n.locale = locale || I18n.default_locale return assessment unless assessment[:detailed_linter_results].present?