Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
linting
Browse files Browse the repository at this point in the history
reschandreas committed Jan 7, 2024
1 parent 0b42a42 commit 47f3cd1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/main.py
Original file line number Diff line number Diff line change
@@ -296,9 +296,9 @@ def translate(
"""
if needs_auth():
if source == Target.bamboo:
payload.url = payload.url or os.getenv("BAMBOO_URL")
payload.username = payload.username or os.getenv("BAMBOO_USERNAME")
payload.token = payload.token or os.getenv("BAMBOO_TOKEN")
payload.url = os.getenv("BAMBOO_URL", "needs to be set")
payload.username = os.getenv("BAMBOO_USERNAME", "needs to be set")
payload.token = os.getenv("BAMBOO_TOKEN", "needs to be set")
if source != Target.bamboo:
raise HTTPException(status_code=422, detail="Invalid source target")
output_settings: OutputSettings = OutputSettings(verbose=True, debug=True, emoji=True)

0 comments on commit 47f3cd1

Please sign in to comment.