Skip to content

Commit

Permalink
added check for failure to get environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
derenv committed Nov 9, 2024
1 parent f51a1fc commit 6f3ac1a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ def main() -> bool:
# Fetch config from environment variables
configData = fetchConfig()

# Validate environment variables fetched
if(configData):
# Status message
print("🤖 Bot fetched environment variables..")
else:
# Status message
print("🤖 Bot was unable to fetch environment variables..")

# Return failure
return False

# Create client
client = Client("https://bsky.social")

Expand Down

0 comments on commit 6f3ac1a

Please sign in to comment.