Use default language for PyLint if non is specified

This commit is contained in:
Sebastian Serth
2021-01-24 22:33:35 +01:00
parent 37d92cadc6
commit ad3e4ce4e2

View File

@ -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?