Skip to content

Commit e78b6de

Browse files
committed
Always set Umbra token from env
1 parent 2efb2c7 commit e78b6de

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

demo/api/backends/umbra_backend.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,7 @@ async def find_opportunities(
136136
print(f"Umbra - find_opportunities, search: {search}")
137137

138138
# Grab token from env until we can get it from the header
139-
if not token:
140-
token = os.getenv("UMBRA_TOKEN", "")
139+
token = os.getenv("UMBRA_TOKEN", "")
141140

142141
if not token:
143142
raise Exception("Set UMBRA_TOKEN before running the server")

0 commit comments

Comments
 (0)