mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-10-31 18:05:22 +00:00
Tidying
This commit is contained in:
1 parent
c30b32553d
commit
082f6d8eb3
1 file changed
+2
-2
+2
-2
@@ -215,7 +215,7 @@ def _libretranslate(url: str, text: str,
|
||||
url += "translate"
|
||||
|
||||
originalText = text
|
||||
|
||||
|
||||
# get any links from the text
|
||||
links = getLinksFromContent(text)
|
||||
|
||||
@@ -241,7 +241,7 @@ def _libretranslate(url: str, text: str,
|
||||
try:
|
||||
response = request.urlopen(req)
|
||||
except BaseException:
|
||||
print('Unaable to translate: ' + text)
|
||||
print('Unable to translate: ' + text)
|
||||
return originalText
|
||||
|
||||
response_str = response.read().decode()
|
||||
|
||||
Reference in new issue
Block a user