From 171049f98ce59e917d7fcad2d75fcf957b4e5add Mon Sep 17 00:00:00 2001 From: Ryan Kirkbride Date: Tue, 22 Jun 2021 12:21:39 +0100 Subject: [PATCH] Override help() function to require input and avoid crash #244 --- FoxDot/lib/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/FoxDot/lib/__init__.py b/FoxDot/lib/__init__.py index 4974722e..2090f51a 100644 --- a/FoxDot/lib/__init__.py +++ b/FoxDot/lib/__init__.py @@ -223,6 +223,11 @@ def reassign_clock(self): update_foxdot_clock(Clock) instantiate_player_objects() +# Override help to avoid crashing +__help = help +def help(thing): + return __help(thing) + # Create a "now" time variable now = var([0]).transform(lambda a: Clock.now()) nextbar = var([0]).transform(lambda a: Clock.next_bar())