From 70c03644280a612e0752bf1ba78bec3be3e06a63 Mon Sep 17 00:00:00 2001 From: LordBaryhobal Date: Sun, 8 Feb 2026 15:01:20 +0100 Subject: [PATCH] fix(repl): don't print none return values --- src/repl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/repl.py b/src/repl.py index cbc581c..3185b89 100644 --- a/src/repl.py +++ b/src/repl.py @@ -96,7 +96,8 @@ class REPL: stmt: ExpressionStmt = program[0] # type: ignore try: value = self.interpreter.evaluate(stmt.expression) - print(self.interpreter.stringify(value)) + if value is not None: + print(self.interpreter.stringify(value)) except PebbleRuntimeError as e: Pebble.runtime_error(e) else: