Permalink
Browse files

logger: add fucking hack to NOT show the numeric missing array handle…

…r in OpenGL.arrays.

I hope one day pyopengl will fix that (since Numeric is deprecated from a long time now.)
  • Loading branch information...
1 parent 05901fd commit 80b1b5993bf37b9d5db895f3a8a728931ab294cb @tito committed Oct 21, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 pymt/logger.py
View
@@ -182,6 +182,11 @@ def __init__(self, msg, use_color=True):
self.use_color = use_color
def format(self, record):
+ # XXX Hack to not show the fucking traceback for Numeric handler
+ # Lot of people are complaining with that. Now we did.
+ if 'Unable to load registered array format handler' in record.msg:
+ if record.args and record.args[0] == 'numeric':
+ return
try:
msg = record.msg.split(':', 1)
if len(msg) == 2:

0 comments on commit 80b1b59

Please sign in to comment.