Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Moved rest of sa_insights iteration into try block #9

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

nickselpa
Copy link

Addresses #8

The get_sa_insights function had the core logic split between
the try block and the function code itself. If the try was
successful, then the rest of the function operated as expected.

When the except was encountered, it would move to the function
code and fail because the sa_insights reference doesn't exist
in any scope.

The rest of the function logic was moved into the try block.

Additionally, a default except was added that will print the
exception encountered to stdout.

The function continuing to iterate through the list of projects
was preserved in this patch.

The `get_sa_insights` function had the core logic split between
the `try` block and the function code itself.  If the `try` was
successful, then the rest of the function operated as expected.

When the `except` was encountered, it would move to the function
code and fail because the `sa_insights` reference doesn't exist
in any scope.

The rest of the function logic was moved into the `try` block.

Additionally, a default `except` was added that will print the
exception encountered to stdout.

The function continuing to iterate through the list of projects
was preserved in this patch.
@nickselpa nickselpa requested a review from jdyke April 8, 2021 14:02
@jdyke jdyke marked this pull request as draft April 8, 2021 17:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants