Skip to content

Commit

Permalink
QtMessageHandler have three arguments in qt5
Browse files Browse the repository at this point in the history
  • Loading branch information
pohmelie committed Jan 2, 2015
1 parent e0c829b commit 596ddbf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ghost/ghost.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ class QTMessageProxy(object):
def __init__(self, logger):
self.logger = logger

def __call__(self, msgType, msg):
def __call__(self, *args):
msgType, msg = args[0], args[-1]
levels = {
QtDebugMsg: 'debug',
QtWarningMsg: 'warn',
Expand Down

0 comments on commit 596ddbf

Please sign in to comment.