Update app.py
Browse files
app.py
CHANGED
|
@@ -104,7 +104,8 @@ def process_input(user_input):
|
|
| 104 |
else:
|
| 105 |
return "❓ Try commands like:\n• Buy £100 of AAPL\n• Sell £50 of TSLA\n• Show portfolio"
|
| 106 |
|
| 107 |
-
|
|
|
|
| 108 |
|
| 109 |
update_portfolio_history()
|
| 110 |
|
|
|
|
| 104 |
else:
|
| 105 |
return "❓ Try commands like:\n• Buy £100 of AAPL\n• Sell £50 of TSLA\n• Show portfolio"
|
| 106 |
|
| 107 |
+
except:
|
| 108 |
+
return f"⚠️ Error: {e}"
|
| 109 |
|
| 110 |
update_portfolio_history()
|
| 111 |
|