This commit is contained in:
Piero Toffanin 2022-02-07 11:22:08 -05:00 committed by GitHub
parent 0d122c5d53
commit 61a148d692
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -135,7 +135,7 @@ def create_app(args):
if frontend_argos_language_source is None: if frontend_argos_language_source is None:
frontend_argos_language_source = languages[0] frontend_argos_language_source = languages[0]
if frontend_argos_language_target is None: if frontend_argos_language_target is None:
if languages[1]: if len(languages) >= 2:
frontend_argos_language_target = languages[1] frontend_argos_language_target = languages[1]
else: else:
frontend_argos_language_target = languages[0] frontend_argos_language_target = languages[0]