Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix json decode error #66

Merged
merged 5 commits into from
Jul 11, 2024
Merged

Fix json decode error #66

merged 5 commits into from
Jul 11, 2024

Conversation

RushiT0122
Copy link
Contributor

Description of change

Fixes the json.JSONDecodeError exception TDL-25930.

Manual QA steps

  • Tested cloned connection, extraction didn't fail after 3-4 days of execution.
  • PR-alpha ran successfully on prod connection.

Risks

Rollback steps

  • revert this branch

Comment on lines +288 to +290
operations = []
else:
raise Exception("Invalid file format: %s" % file.name) from e

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need to raise an exception if the file with invalid format was getting skipped in the previous code?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i take back my comment, thought the else part was aligned with the earlier if statement

@rdeshmukh15 rdeshmukh15 merged commit f453bd1 into master Jul 11, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants