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?