From eea9f40501573c8554f0abc089bb0c8431fab7a3 Mon Sep 17 00:00:00 2001 From: Ruud Date: Fri, 19 Dec 2014 09:01:52 +0100 Subject: [PATCH] Use current --- couchpotato/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/api.py b/couchpotato/api.py index 36025134..2ce4312c 100644 --- a/couchpotato/api.py +++ b/couchpotato/api.py @@ -34,7 +34,7 @@ def run_async(func): def run_handler(route, kwargs, callback = None): try: res = api[route](**kwargs) - IOLoop.instance().add_callback(callback, res, route) + IOLoop.current().add_callback(callback, res, route) except: log.error('Failed doing api request "%s": %s', (route, traceback.format_exc())) callback({'success': False, 'error': 'Failed returning results'}, route)