|
@@ -442,5 +442,9 @@ def random():
|
|
|
else:
|
|
else:
|
|
|
return '<meta http-equiv="refresh" content="0;url=/w/' + parse.quote(data['frontpage']) + '" />'
|
|
return '<meta http-equiv="refresh" content="0;url=/w/' + parse.quote(data['frontpage']) + '" />'
|
|
|
|
|
|
|
|
|
|
+@app.errorhandler(404)
|
|
|
|
|
+def uncaughtError(error):
|
|
|
|
|
+ return '<meta http-equiv="refresh" content="0;url=/w/' + parse.quote(data['frontpage']) + '" />'
|
|
|
|
|
+
|
|
|
if __name__ == '__main__':
|
|
if __name__ == '__main__':
|
|
|
app.run(host = '0.0.0.0', port = 3000)
|
|
app.run(host = '0.0.0.0', port = 3000)
|