summaryrefslogtreecommitdiff
path: root/mpv.py
diff options
context:
space:
mode:
authorFrechdachs <Frechdachs@users.noreply.github.com>2016-02-19 08:33:48 +0100
committerFrechdachs <Frechdachs@users.noreply.github.com>2016-02-19 08:33:48 +0100
commit1dd8329a426aa83c274c266c4f54062784b9dbb0 (patch)
tree8173a3462f974db9dec4463de719f17e0928bd52 /mpv.py
parentac30a66ed493d03b5358fda3945aae0ca2b5b7c9 (diff)
downloadpython-mpv-1dd8329a426aa83c274c266c4f54062784b9dbb0.tar.gz
python-mpv-1dd8329a426aa83c274c266c4f54062784b9dbb0.tar.bz2
python-mpv-1dd8329a426aa83c274c266c4f54062784b9dbb0.zip
Fix DEFAULT_ERROR_HANDLER
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):