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

adding an option to use preparers as a back up plan #15945

Merged
merged 2 commits into from
Jan 8, 2021

Conversation

seankane-msft
Copy link
Member

If a environment variable kwarg is not present, the preparer will go to the backup plan of provided preparers if they are provided.

@seankane-msft seankane-msft added the EngSys This issue is impacting the engineering system. label Dec 29, 2020
@seankane-msft seankane-msft self-assigned this Dec 29, 2020
@ghost ghost added the Tables label Dec 29, 2020
@seankane-msft
Copy link
Member Author

#15929

@seankane-msft
Copy link
Member Author

/azp run python - core - ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

raise AzureTestError(template.format(key))
except KeyError as key_error:
if not self._backup_preparers:
raise key_error
Copy link
Member

Choose a reason for hiding this comment

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

Just raise, this is re-raising the latest exception automatically. I believe this is equivalent but convention when you mostly let it go is to just write raise. Though I wonder if the stacktrace is impacted when you put a variable name like key_error in between.

@seankane-msft seankane-msft merged commit bedefda into Azure:master Jan 8, 2021
@seankane-msft seankane-msft deleted the preparer-update branch January 8, 2021 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EngSys This issue is impacting the engineering system. Tables
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants