-
Notifications
You must be signed in to change notification settings - Fork 311
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
Updated general exceptions with specific ones. #3339
Conversation
Added ValueError replacing Exception Error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @prernadabi23
This PR fixes:
#3337
The goal of #3337 is to replace all cases not only in model.py
. I will merge this PR for now, but it will not close the issue.
@prernadabi23 could you please edit the pull request title to something more descriptive? |
Thank you, I will update it in all files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, I will update it in all files.
Thank you! Then, could you please link your pull request to the issue?
I am not able to understand as I have already linked it. |
To allow GitHub to link the pull request to an issue, the keyword (i.e., "fixes") and the issue number should be in the same line without any special characters in between (e.g., See more here: https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue |
@suhaibmujahid I mistakenly changed the PR name, and that has led to failing the lint check... |
The lint error is not related to the PR name/title. The patch has a formatting problem, see: https://community-tc.services.mozilla.com/tasks/Ap5h1JETTveSymWIgrqscg/runs/0/logs/public/logs/live.log#L168-184 To avoid lint failures, it is recommended to setup pre-commit: https://github.com/mozilla/bugbug#auto-formatting Since your changes have already been committed, once you have
|
@suhaibmujahid I did "pre-commit run --all-files". What else needs to be done? The error is still there. |
You need to fix the lint errors and commit the fix. |
@suhaibmujahid I am getting a flake8 error. Else everything is passed. $ pre-commit run --all-files
////////////////////////////////////////////////////////////////////////////////////////// check python ast.........................................................Passed |
@suhaibmujahid It's all done. |
@suhaibmujahid you can check now. |
@suhaibmujahid Can you confirm these changes, then I'll make the changes there. |
You could commit the changes without asking 🙂 |
@suhaibmujahid I don't know why the lint error is there, all checks are passing as you can see. |
I am running two repos simultaneously, I'll fix this. |
@suhaibmujahid Can you please look into this? I am trying but still no change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you, @prernadabi23!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@suhaibmujahid @marco-c Thank you so much ..! and @suhaibmujahid thank you for helping me in every step, learned a lot during this process. |
Added ValueError replacing Exception Error.
Signed-off-by: Prerna Dabi [email protected]
fixes #3337