From b5183c3253526aeaee94a2be3008780cb718d550 Mon Sep 17 00:00:00 2001 From: Luke Robles <98352913+lrobles-iterable@users.noreply.github.com> Date: Wed, 4 May 2022 10:11:45 -0700 Subject: [PATCH] fixing how covid henadles no argument --- app/corona.py | 6 +++--- helm/values.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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