Skip to content

Conversation

@JVickery-TBS
Copy link
Contributor

feat(misc): exception handling;

  • Improved exception logging and handling.

@wardi this one is to solve a bunch of back and forth with clients, support, and devs. So just adding logs for the Exception catch when processing upload files. used log.info because of our prod logger setups (I know, its bad).

As for the past few issues like this, I noticed that the common error is a Runtime on StopIteration which seems to be that the iterator is finishing before expected? This happened inside of the read_excel iter, and when expecting the looping sheetnames, different Excel docs provided by clients had some seemingly machine generated sheetnames.

Did some quick researched and found that depending on Excel extensions and Macros and Services that a user may be using on their computer with Excel, they can have hidden sheets in their docs. And those sheets get saved inside the Excel doc they upload. So for now, just skipping over a common one I found which the sheetname contains the word cache

Let me know if you think it would be better (or possible) to just check for the resource names that we are expecting??

- Improved exception logging and handling.
- Added change log file.
- Check for expected sheetnames when inside of generator method.
- Pyright fixes.
@JVickery-TBS JVickery-TBS merged commit cb9f93a into master Dec 2, 2025
8 checks passed
@JVickery-TBS JVickery-TBS deleted the fix/misc-exception-handling branch December 2, 2025 14:47
JVickery-TBS added a commit that referenced this pull request Dec 8, 2025
Improved Exception Handling on File Upload
JVickery-TBS added a commit that referenced this pull request Dec 8, 2025
Improved Exception Handling on File Upload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants