From 73585db5188e1315414bbb55c7cfe9754d374819 Mon Sep 17 00:00:00 2001 From: Thorrak Date: Thu, 28 Apr 2016 18:58:37 -0400 Subject: [PATCH] Fix issues flake8 found --- django_alexa/internal/validation.py | 2 +- django_alexa/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/django_alexa/internal/validation.py b/django_alexa/internal/validation.py index 0a7bf4e..683462f 100644 --- a/django_alexa/internal/validation.py +++ b/django_alexa/internal/validation.py @@ -100,7 +100,7 @@ def verify_signature(request_body, signature, cert_url): if crypto.verify(certificate, decoded_signature, request_body, 'sha1') is None: return True except: - raise InternalError("Error occured during signature validation", {"error": 400}) + raise InternalError("Error occured during signature validation", {"error": 400}) return False diff --git a/django_alexa/views.py b/django_alexa/views.py index 589fa35..e873e81 100644 --- a/django_alexa/views.py +++ b/django_alexa/views.py @@ -4,7 +4,7 @@ from django.conf import settings from rest_framework.response import Response from rest_framework.status import HTTP_200_OK -from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseForbidden, HttpResponseRedirect +from django.http import HttpResponseBadRequest, HttpResponseForbidden from rest_framework.views import APIView from .serializers import ASKInputSerializer from .internal import ALEXA_APP_IDS, ResponseBuilder, IntentsSchema, validate_alexa_request, validate_reponse_limit