From a0dd3335c9935f2e0b616698a630824c87ca17a8 Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Sun, 14 Oct 2018 09:34:17 -0700 Subject: [PATCH] It pains me but i must add gcc to the docker file now to get it to build properly --- Dockerfile | 2 +- Dockerfile-test-env | 2 +- app/weather.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 05fb076c..ca3c3597 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM python:3.6.2-alpine3.6 ADD app/requirements.txt /requirements.txt RUN apk update && \ - apk add --no-cache docker && \ + apk add --no-cache docker build-base && \ pip install -U pip && \ pip install -r requirements.txt ADD app /app diff --git a/Dockerfile-test-env b/Dockerfile-test-env index f3cc7527..a036b858 100644 --- a/Dockerfile-test-env +++ b/Dockerfile-test-env @@ -1,7 +1,7 @@ FROM python:3.6.2-alpine3.6 ADD app/requirements.txt /requirements.txt RUN apk update && \ - apk add --no-cache vim docker && \ + apk add --no-cache vim docker build-base && \ pip install -U pip && \ pip install pylint && \ pip install -r requirements.txt diff --git a/app/weather.py b/app/weather.py index 73a965f3..67bd30c4 100644 --- a/app/weather.py +++ b/app/weather.py @@ -75,5 +75,5 @@ def get_weather(message): ind += 1 return forecast_str - except exceptions.not_found_error.NotFoundError: + except Exception: return 'Please input a valid location'