Spaces:
Running
Running
Commit
·
18d21e2
1
Parent(s):
acbd06b
Update main.py
Browse files
main.py
CHANGED
@@ -111,9 +111,12 @@ def proxy(url):
|
|
111 |
return Response(req.iter_content(chunk_size=2048), content_type=req.headers['content-type'])
|
112 |
|
113 |
except Exception as e:
|
|
|
|
|
|
|
|
|
114 |
logging.error(f"Error in proxy: {str(e)}")
|
115 |
-
|
116 |
-
return redirect(url_for('index', new='true'))
|
117 |
|
118 |
|
119 |
@app.route('/')
|
|
|
111 |
return Response(req.iter_content(chunk_size=2048), content_type=req.headers['content-type'])
|
112 |
|
113 |
except Exception as e:
|
114 |
+
#logging.error(f"Error in proxy: {str(e)}")
|
115 |
+
#print('Skipped')
|
116 |
+
#return redirect(url_for('index', new='true'))
|
117 |
+
|
118 |
logging.error(f"Error in proxy: {str(e)}")
|
119 |
+
return Response("Error", status=500)
|
|
|
120 |
|
121 |
|
122 |
@app.route('/')
|