Skip to content

Commit

Permalink
Merge pull request #1 from derenv/config-fix
Browse files Browse the repository at this point in the history
added check for failure to get environment variables
  • Loading branch information
derenv authored Nov 9, 2024
2 parents f51a1fc + 6f3ac1a commit 2aacb51
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 2aacb51

Please sign in to comment.