From 96fbd216c717c0c0f88d21ba41782ad3413c19ec Mon Sep 17 00:00:00 2001 From: "Asad M. Zaman" Date: Tue, 20 Apr 2004 17:25:46 +0000 Subject: [PATCH] setPandaErrorCode is part of Launcher, not ShowBase --- direct/src/showbase/ShowBase.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/direct/src/showbase/ShowBase.py b/direct/src/showbase/ShowBase.py index 1e06ed09ce..9dcbbbdae3 100644 --- a/direct/src/showbase/ShowBase.py +++ b/direct/src/showbase/ShowBase.py @@ -502,9 +502,13 @@ class ShowBase(DirectObject.DirectObject): # For toontown, it is possible that window open failed # because of a graphics card issue. In that case, take # user to the appropriate page. - self.setPandaErrorCode(14) + self.notify.error("Unable to open '%s' window." % (self.windowType)) - sys.exit() + try: + launcher.setPandaErrorCode(14) + sys.exit(1) + except: + pass return (self.win != None)