Commit 8e6ab5a6 authored by Michal Čihař's avatar Michal Čihař

Skip language codes with .

There doesn't seem to be use for them.

Issue #760
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent c5f41982
......@@ -918,6 +918,9 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
pos + 1,
len(matches)
)
if '.' in code:
self.log_info('skipping language: {0}'.format(code))
continue
lang = Language.objects.auto_get_or_create(code=code)
if lang.code in languages:
self.log_error('duplicate language found: %s', lang.code)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment