whoops - can't split an empty string
This commit is contained in:
@ -32,7 +32,7 @@ quip_token = getenv('QUIP_TOKEN')
|
|||||||
quotes_source = getenv('QUOTES_SOURCE')
|
quotes_source = getenv('QUOTES_SOURCE')
|
||||||
|
|
||||||
## Repository links
|
## Repository links
|
||||||
repo_links = getenv('REPO_LINKS').split(',')
|
repo_links = getenv('REPO_LINKS')
|
||||||
|
|
||||||
# Pushover creds
|
# Pushover creds
|
||||||
po_endpoint = getenv('PUSHOVER_ENDPOINT')
|
po_endpoint = getenv('PUSHOVER_ENDPOINT')
|
||||||
|
@ -9,7 +9,7 @@ from globals import *
|
|||||||
now = dt.now(tz.utc)
|
now = dt.now(tz.utc)
|
||||||
six_hours_ago = now - timedelta(hours=6)
|
six_hours_ago = now - timedelta(hours=6)
|
||||||
|
|
||||||
for repo_link in repo_links:
|
for repo_link in repo_links.split(','):
|
||||||
result = get(repo_link)
|
result = get(repo_link)
|
||||||
entity = f"{repo_link.split('/')[3]}/{repo_link.split('/')[4]}"
|
entity = f"{repo_link.split('/')[3]}/{repo_link.split('/')[4]}"
|
||||||
if result.reason == 'OK':
|
if result.reason == 'OK':
|
||||||
|
Reference in New Issue
Block a user