From 7da0d19f2c8eca60423439f0cf14463d2248431b Mon Sep 17 00:00:00 2001 From: Mario Lang Date: Wed, 8 Jan 2003 00:13:33 +0000 Subject: Catch the module-not-found error --- chess.el | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'chess.el') diff --git a/chess.el b/chess.el index 7b3425d..81a9f06 100644 --- a/chess.el +++ b/chess.el @@ -193,10 +193,12 @@ available." 'chess-module-create game)) (push (unless (eq engine 'none) - (car (chess-create-modules (list (or engine chess-default-engine)) - 'chess--create-engine game - engine-response-handler - engine-ctor-args))) + (car (condition-case nil + (chess-create-modules (list (or engine chess-default-engine)) + 'chess--create-engine game + engine-response-handler + engine-ctor-args) + (error nil)))) objects) (unless (car objects) -- cgit v1.2.3