I'm translating a db from english to spanish with the Google translator API. The problem is when a TranslationError occurs. I can except the first one, but I don't know how to except again. It must be a pythonic way to solve this, but I failed to find it.
Here's a snippet from the code: english_field = oldDb[i].fieldData[0] try: spanish_field = translate(english_field, lang_to='es', lang_from='en') except TranslationError: spanish_field = translate(english_field, lang_to='es', lang_from='en') -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.