mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 11:33:53 +01:00
Fix bug where variable was not always defined
This commit is contained in:
parent
8c83cc471b
commit
6370cffbbf
1 changed files with 1 additions and 2 deletions
|
@ -113,6 +113,7 @@ class JsonResource(HttpServer, resource.Resource):
|
||||||
path.
|
path.
|
||||||
"""
|
"""
|
||||||
code = None
|
code = None
|
||||||
|
start = self.clock.time_msec()
|
||||||
try:
|
try:
|
||||||
# Just say yes to OPTIONS.
|
# Just say yes to OPTIONS.
|
||||||
if request.method == "OPTIONS":
|
if request.method == "OPTIONS":
|
||||||
|
@ -137,8 +138,6 @@ class JsonResource(HttpServer, resource.Resource):
|
||||||
request.method, request.path
|
request.method, request.path
|
||||||
)
|
)
|
||||||
|
|
||||||
start = self.clock.time_msec()
|
|
||||||
|
|
||||||
code, response = yield path_entry.callback(
|
code, response = yield path_entry.callback(
|
||||||
request,
|
request,
|
||||||
*args
|
*args
|
||||||
|
|
Loading…
Reference in a new issue