Skip to content
Snippets Groups Projects
Commit af61c295 authored by Mark Haines's avatar Mark Haines
Browse files

Return the argument passed to the callback in a deferred callback, otherwise...

Return the argument passed to the callback in a deferred callback, otherwise twisted will replace the deferred result with 'None'
parent 420ccfc9
No related branches found
No related tags found
No related merge requests found
......@@ -139,6 +139,7 @@ class BaseMediaResource(Resource):
@download.addBoth
def callback(media_info):
del self.downloads[key]
return media_info
return download
@defer.inlineCallbacks
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment