fixing how covid henadles no argument

This commit is contained in:
Luke Robles 2022-05-04 10:11:45 -07:00
parent 065547f1bc
commit 2503d5885c
2 changed files with 4 additions and 4 deletions

View File

@ -137,11 +137,11 @@ def sum_numbers(location):
# return percent_vaccinated
def parse_message(message):
def parse_message(location=None):
try:
location = string.capwords(" ".join(message.split()))
location = string.capwords(" ".join(location.split()))
if not location:
location = "California"
except IndexError:
except (IndexError, AttributeError):
location = "California"
return sum_numbers(location)

View File

@ -6,7 +6,7 @@ replicaCount: 1
image:
# Overrides the image tag whose default is the chart appVersion.
tag: "174"
tag: "176"
repository: ldooks/dragon-bot
pullPolicy: IfNotPresent