mirror of https://gitlab.com/litecord/litecord.git
remove unnecessary ** in dict
This commit is contained in:
parent
f463d6c934
commit
13f6842232
5
run.py
5
run.py
|
|
@ -109,12 +109,13 @@ async def handle_litecord_err(err):
|
||||||
except IndexError:
|
except IndexError:
|
||||||
ejson = {}
|
ejson = {}
|
||||||
|
|
||||||
return jsonify({**{
|
return jsonify({
|
||||||
'error': True,
|
'error': True,
|
||||||
# 'code': err.code,
|
# 'code': err.code,
|
||||||
'status': err.status_code,
|
'status': err.status_code,
|
||||||
'message': err.message,
|
'message': err.message,
|
||||||
}, **ejson}), err.status_code
|
**ejson
|
||||||
|
}), err.status_code
|
||||||
|
|
||||||
|
|
||||||
@app.errorhandler(500)
|
@app.errorhandler(500)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue