CarlosOliveira1988 / Investment_Portfolio_Analysis

This repository is useful to perform some financial analysis in Investment Portfolio
4 stars 0 forks source link

The application crashes when opening it with invalid 'Extrato spreadsheet' #73

Closed CarlosOliveira1988 closed 2 years ago

CarlosOliveira1988 commented 2 years ago

Describe the bug

The application crashes when opening it with invalid 'Extrato spreadsheet'

To Reproduce

Steps to reproduce the behavior:

  1. Open an invalid 'Extrato spreadsheet', then quit the application
  2. Open the application again
  3. See error

Expected behavior

All the tabs should be displayed, with empty data

Screenshots

When the issue happens, the following message box is displayed: image

Then, after clicking "OK", none of the main tabs are displayed. image

Additional context

Also, when the issue happens, it is impossible to select a new spreadsheet unless you delete the '.env' file to restore the default state. Without this action, the application gets broken when you try to load new spreadsheets, raising the following exception: image

CarlosOliveira1988 commented 2 years ago

This issue is resolved by the commit 5a37aaf. Please, check the results.