Browse Source

solve flake8 error

moritan 9 years ago
parent
commit
53b366b5c9
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      searx/rest-server.py

+ 2
- 2
searx/rest-server.py View File

@@ -14,12 +14,12 @@ app = Flask(__name__, static_url_path="/static/themes/ember")
14 14
 
15 15
 
16 16
 @app.errorhandler(400)
17
-def not_found(error):
17
+def handle400(error):
18 18
     return make_response(jsonify({'name': error.name, 'description': error.description}), 400)
19 19
 
20 20
 
21 21
 @app.errorhandler(404)
22
-def not_found(error):
22
+def handle404(error):
23 23
     return make_response(jsonify({'name': error.name, 'description': error.description}), 404)
24 24
 
25 25