diff --git a/app/corona.py b/app/corona.py index a222cb76..320757f0 100755 --- a/app/corona.py +++ b/app/corona.py @@ -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) diff --git a/helm/values.yaml b/helm/values.yaml index 0583f120..41c7e6bb 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -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