Commit 15439a8e authored by Michal Čihař's avatar Michal Čihař

Skip format string checks on empty strings

parent f7972cfd
......@@ -89,6 +89,8 @@ def check_format_strings(source, target, regex):
'''
Generic checker for format strings.
'''
if len(target) == 0:
return False
src_matches = set([x[0] for x in regex.findall(source)])
tgt_matches = set([x[0] for x in regex.findall(target)])
......
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