Return the argument passed to the callback in a deferred callback, otherwise twisted will replace the deferred result with 'None'
parent
420ccfc925
commit
af61c29527
|
@ -139,6 +139,7 @@ class BaseMediaResource(Resource):
|
|||
@download.addBoth
|
||||
def callback(media_info):
|
||||
del self.downloads[key]
|
||||
return media_info
|
||||
return download
|
||||
|
||||
@defer.inlineCallbacks
|
||||
|
|
Loading…
Reference in New Issue