edisugi1996
commited on
Commit
·
9f36564
1
Parent(s):
caf73a2
Add response.close()
Browse files
deep_translator/mymemory.py
CHANGED
@@ -74,6 +74,7 @@ class MyMemoryTranslator(BaseTranslator):
|
|
74 |
if not data:
|
75 |
TranslationNotFound(text)
|
76 |
|
|
|
77 |
translation = data.get("responseData").get("translatedText")
|
78 |
if translation:
|
79 |
return translation
|
|
|
74 |
if not data:
|
75 |
TranslationNotFound(text)
|
76 |
|
77 |
+
response.close()
|
78 |
translation = data.get("responseData").get("translatedText")
|
79 |
if translation:
|
80 |
return translation
|