app.py aktualisiert
This commit is contained in:
9
app.py
9
app.py
@@ -60,9 +60,18 @@ def download_video():
|
||||
flash(f'Video "{yt.title}" erfolgreich heruntergeladen!', 'success')
|
||||
|
||||
except Exception as e:
|
||||
import traceback
|
||||
print("---------- ERROR DETAILS ----------")
|
||||
print(f"Error type: {type(e)}")
|
||||
print(f"Error message: {str(e)}")
|
||||
print("Traceback:")
|
||||
traceback.print_exc() # Gibt den kompletten Traceback auf der Konsole aus
|
||||
print("---------------------------------")
|
||||
flash(f'Ein Fehler ist aufgetreten: {str(e)}', 'error')
|
||||
|
||||
return redirect(url_for('index'))
|
||||
|
||||
return redirect(url_for('index'))
|
||||
|
||||
@app.route('/play/<filename>')
|
||||
def play_video(filename):
|
||||
|
||||
Reference in New Issue
Block a user