Skip to content

Commit

Permalink
Merge e04e444 into 3790d3f
Browse files Browse the repository at this point in the history
  • Loading branch information
almarklein committed Mar 4, 2014
2 parents 3790d3f + e04e444 commit a37048a
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions vispy/app/backends/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def has_qt(requires_uic=False, return_which=False):
def has_pyglet(return_which=False):
try:
from . import _pyglet # noqa
except:
except Exception:
which = None
has = False
else:
Expand Down Expand Up @@ -104,7 +104,7 @@ def has_glfw(return_why=False, return_which=False):
def has_glut(return_which=False):
try:
from OpenGL import GLUT # noqa
except:
except Exception:
has = False
which = None
else:
Expand Down
2 changes: 1 addition & 1 deletion vispy/app/backends/_glut.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def _vispy_get_native_app(self):
argNames=())
text = ctypes.c_char_p("rgba stencil double samples=8 hidpi")
glutInitDisplayString(text)
except:
except Exception:
pass
if not self._initialized:
glut.glutInit() # todo: maybe allow user to give args?
Expand Down
2 changes: 1 addition & 1 deletion vispy/util/_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def __enter__(self):
def __exit__(self, type, value, traceback):
try:
self.c.close()
except:
except Exception:
logger.warn('Failed to close canvas')
return

Expand Down
2 changes: 1 addition & 1 deletion vispy/util/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def __call__(self, *args, **kwds):

try:
cb(event)
except:
except Exception:
# get traceback and store (so we can do postmortem
# debugging)
type, value, tb = sys.exc_info()
Expand Down
4 changes: 2 additions & 2 deletions vispy/util/tests/test_emitter_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,10 @@ def record_event(self, ev, key=None):
else:
try:
attrs[name] = copy.deepcopy(val)
except:
except Exception:
try:
attrs[name] = copy.copy(val)
except:
except Exception:
attrs[name] = val
if key is None:
self.result = ev, attrs
Expand Down
6 changes: 3 additions & 3 deletions vispy/util/tests/test_event_emitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def _pop_source(self):
self.assert_result() # checks event type
assert False, \
"Should not be able to construct emitter with non-Event class"
except:
except Exception:
pass

def test_event_kwargs(self):
Expand Down Expand Up @@ -433,10 +433,10 @@ def record_event(self, ev, key=None):
else:
try:
attrs[name] = copy.deepcopy(val)
except:
except Exception:
try:
attrs[name] = copy.copy(val)
except:
except Exception:
attrs[name] = val
if key is None:
self.result = ev, attrs
Expand Down

0 comments on commit a37048a

Please sign in to comment.