Commit 171111ce authored by Michal Čihař's avatar Michal Čihař

Quality can be None sometimes

parent 9f564445
...@@ -44,7 +44,7 @@ class MyMemoryTranslation(MachineTranslation): ...@@ -44,7 +44,7 @@ class MyMemoryTranslation(MachineTranslation):
''' '''
Reformats match to (translation, quality) tuple. Reformats match to (translation, quality) tuple.
''' '''
if match['quality'].isdigit(): if match['quality'] is not None and match['quality'].isdigit():
quality = int(match['quality']) quality = int(match['quality'])
else: else:
quality = 0 quality = 0
......
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