fixing how covid henadles no argument
This commit is contained in:
parent
065547f1bc
commit
2503d5885c
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user