From c05458af99966c5b50d07811162a6b9964099d6d Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Fri, 20 Jan 2012 23:49:59 +0100 Subject: [PATCH] window: and handle also the case without multisample activated. --- kivy/core/window/window_pygame.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kivy/core/window/window_pygame.py b/kivy/core/window/window_pygame.py index a2e76e1e0..b8b2858ea 100644 --- a/kivy/core/window/window_pygame.py +++ b/kivy/core/window/window_pygame.py @@ -105,7 +105,7 @@ class WindowPygame(WindowBase): # try to use mode with multisamples try: self._pygame_set_mode() - except pygame.error: + except pygame.error, e: if multisamples: Logger.warning('WinPygame: Video: failed (multisamples=%d)' % multisamples) @@ -118,8 +118,7 @@ class WindowPygame(WindowBase): except pygame.error, e: raise CoreCriticalException(e.message) else: - Logger.warning('WinPygame: Video setup failed :-(') - raise + raise CoreCriticalException(e.message) super(WindowPygame, self).create_window()