diff --git a/py/repl.c b/py/repl.c
index 473313c1efd866e385d4131ac28d172dee93e271..412ab200819c286e49e2d5a68b2f6251287b9e0a 100644
--- a/py/repl.c
+++ b/py/repl.c
@@ -20,7 +20,7 @@ bool mp_repl_is_compound_stmt(const char *line) {
            str_startswith_word(line, "if")
         || str_startswith_word(line, "while")
         || str_startswith_word(line, "for")
-        || str_startswith_word(line, "true")
+        || str_startswith_word(line, "try")
         || str_startswith_word(line, "with")
         || str_startswith_word(line, "def")
         || str_startswith_word(line, "class")