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: