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

Bugfix none type #1035

Merged
merged 5 commits into from
Mar 22, 2024
Merged

Bugfix none type #1035

merged 5 commits into from
Mar 22, 2024

Conversation

Aflynn50
Copy link
Contributor

Description

<Please add why this change is needed and what it does.>
Fix for #1028
The logger is not passed to calls of utils.run_with_interupt from model.py and controller.py. The default value is None, so when it is later used we get the error.
<Fixes: >

QA Steps

Added a raise Exception("my random exception") to the Next method of ModelSummeryWatcherFacade. This is hit by the run_with_interupt in controller and we can observe that when we run the file modelsummaries.py, if the log arguments added in this PR are not there then we get the None Type error and if they are there, we do not.

Jira: JUJU-5610

@Aflynn50 Aflynn50 requested a review from cderici March 20, 2024 23:05
Copy link
Member

@cderici cderici left a comment

Choose a reason for hiding this comment

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

Yeah the CI is unrelated, and will be fixed soon by the recent changes.

Can we also take care of these warnings as a drive-by, I fixed it in 3.x, and I thought I back-ported it, but looks like it fell through the cracks. Feel free to just cherry-pick those into this one or open another PR either is fine 👍

Thanks for the fix!

@Aflynn50
Copy link
Contributor Author

/merge

@jujubot jujubot merged commit 0d1d0a8 into juju:2.9 Mar 22, 2024
8 of 12 checks passed
jujubot added a commit that referenced this pull request Mar 25, 2024
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.

None yet

3 participants