Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
Debugging statement added
  • Loading branch information
julialawrence authored Oct 19, 2023
1 parent 8059389 commit 64325c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def start_vscode(id):
vscode_url = launch_vscode_for_user(sanitized_user_id)
flash('Your VS Code server is being started. Please wait a moment.', 'success')
except Exception as e:
flash(f'An error occurred while starting your VS Code server: {str(e)}', 'error')
print(f'An error occurred while starting your VS Code server: {str(e)}', 'error')
return redirect(url_for('data_source_details', id=id)) # Redirect back to the data source details in case of failure

# Redirect to a waiting page or directly embed the VS Code interface if it's ready
Expand Down Expand Up @@ -498,4 +498,4 @@ def create_backend_websocket(vscode_url):
if __name__ == '__main__':
# Use gevent WebSocket server to run the app instead of the standard Flask server
http_server = WSGIServer(('127.0.0.1', 5000), app, handler_class=WebSocketHandler)
http_server.serve_forever()
http_server.serve_forever()

0 comments on commit 64325c4

Please sign in to comment.