summaryrefslogtreecommitdiff
path: root/mpv.py
diff options
context:
space:
mode:
Diffstat (limited to 'mpv.py')
-rw-r--r--mpv.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpv.py b/mpv.py
index d3ed1a1..d7733e4 100644
--- a/mpv.py
+++ b/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):