Commits

Branko Vukelic  committed 3028939

Fixed #3: This time, working fix

  • Participants
  • Parent commits d0725be

Comments (0)

Files changed (1)

File mstranslator/endpoints/translate.py

 class TranslateEndpoint(GetEndpoint):
     endpoint = 'Translate'
 
-    def __init__(self, text, to, tfrom=None):
+    def __init__(self, text, to, tfrom=''):
 
         if tfrom and tfrom not in LANGUAGE_CODES or to not in LANGUAGE_CODES:
             raise ValueError('Invalid language codes')