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

Two point fixes #261

Merged
merged 2 commits into from
Dec 9, 2024
Merged

Two point fixes #261

merged 2 commits into from
Dec 9, 2024

Conversation

webbnh
Copy link
Collaborator

@webbnh webbnh commented Dec 9, 2024

This PR is the next in the series of revisions originally set out in #207 which endeavors to improve code quality in Sync2Jira; this is the follow-on to #259.

This change provides two independent fixes, but they are so tiny that I've batched them into a single PR for efficiency.

  • My IDE flags the use of the FedMsg load_config() function as deprecated. The documentation doesn't make any such actual statement, but it does indicate that the conf attribute is intended to replace it, so I've replaced the reference to the function in the code with a lambda which returns the attribute.
  • I noted a weak spot in the code where a misconfiguration in the sync2jira.yaml file could crash the tool, so I put in a guard to log and skip the case.

@ralphbean ralphbean enabled auto-merge (squash) December 9, 2024 15:41
@ralphbean ralphbean merged commit cbe4e6d into main Dec 9, 2024
6 checks passed
@ralphbean ralphbean deleted the two-point-fixes branch December 9, 2024 16:20
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.

2 participants