Sentiment-Analysis-Twitter icon indicating copy to clipboard operation
Sentiment-Analysis-Twitter copied to clipboard

Update sentiment.py

Open shreyaa2904 opened this issue 1 year ago • 0 comments

Error Handling for File Operations:

Added a try-except block around the CSV file reading section to catch FileNotFoundError. This provides a clear error message if the file is not found, guiding the user to check the path. Included a general exception handler to catch any other errors that might occur during the file reading process.

Updated the usage message in the main() function to inform users about the expected command-line arguments, including the path to the CSV file.

These changes enhance the overall user experience and make the code more resilient against common file-related issue

shreyaa2904 avatar Oct 23 '24 17:10 shreyaa2904