fix linter problems and loader test

This commit is contained in:
erogol
2020-02-19 18:30:25 +01:00
parent 846d147a66
commit e40bc18c84
3 changed files with 3 additions and 8 deletions
-3
View File
@@ -38,10 +38,7 @@ def text2phone(text, language):
if text[-1] == punctuations[-1]:
for punct in punctuations[:-1]:
ph = ph.replace('| |\n', '|'+punct+'| |', 1)
try:
ph = ph + punctuations[-1]
except:
print(text)
else:
for punct in punctuations:
ph = ph.replace('| |\n', '|'+punct+'| |', 1)