Fix DEFAULT_ERROR_HANDLER
This commit is contained in:
parent
ac30a66ed4
commit
1dd8329a42
1 changed files with 2 additions and 2 deletions
4
mpv.py
4
mpv.py
|
|
@ -50,9 +50,9 @@ class ErrorCode:
|
|||
-12: lambda *a: SystemError('Error running mpv command', *a)
|
||||
}
|
||||
|
||||
@classmethod
|
||||
@staticmethod
|
||||
def DEFAULT_ERROR_HANDLER(ec, *args):
|
||||
return ValueError(_mpv_error_string(ec).decode(), ec, *a)
|
||||
return ValueError(_mpv_error_string(ec).decode(), ec, *args)
|
||||
|
||||
@classmethod
|
||||
def raise_for_ec(kls, func, *args):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue