Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Replace old-style raise with six.reraise #3073

Merged
merged 1 commit into from
Apr 9, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion synapse/rest/media/v1/media_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
from twisted.internet import defer, threads
from twisted.protocols.basic import FileSender

import six

from ._base import Responder

from synapse.util.file_consumer import BackgroundFileConsumer
Expand Down Expand Up @@ -119,7 +121,7 @@ def finish():
os.remove(fname)
except Exception:
pass
raise t, v, tb
six.reraise(t, v, tb)

if not finished_called:
raise Exception("Finished callback not called")
Expand Down