remove unnecessary ** in dict

This commit is contained in:
slice 2018-09-01 19:02:42 -07:00
parent f463d6c934
commit 13f6842232
No known key found for this signature in database
GPG Key ID: 1508C19D7436A26D
1 changed files with 3 additions and 2 deletions

5
run.py
View File

@ -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)