From 1dd8329a426aa83c274c266c4f54062784b9dbb0 Mon Sep 17 00:00:00 2001 From: Frechdachs Date: Fri, 19 Feb 2016 08:33:48 +0100 Subject: Fix DEFAULT_ERROR_HANDLER --- mpv.py | 4 ++-- 1 file 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): -- cgit