0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 18:13:54 +01:00

Return the argument passed to the callback in a deferred callback, otherwise twisted will replace the deferred result with 'None'

This commit is contained in:
Mark Haines 2014-12-29 13:54:05 +00:00
parent 420ccfc925
commit af61c29527

View file

@ -139,6 +139,7 @@ class BaseMediaResource(Resource):
@download.addBoth
def callback(media_info):
del self.downloads[key]
return media_info
return download
@defer.inlineCallbacks