From 61a148d6924aaa9429fa716f215529ee4bf58664 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Mon, 7 Feb 2022 11:22:08 -0500 Subject: [PATCH] Use len --- app/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/app.py b/app/app.py index bc5409e..6a78a1d 100644 --- a/app/app.py +++ b/app/app.py @@ -135,7 +135,7 @@ def create_app(args): if frontend_argos_language_source is None: frontend_argos_language_source = languages[0] if frontend_argos_language_target is None: - if languages[1]: + if len(languages) >= 2: frontend_argos_language_target = languages[1] else: frontend_argos_language_target = languages[0]