From 81504a5366378b3fe5504dbec3390714485522a1 Mon Sep 17 00:00:00 2001 From: Martin Date: Sun, 13 Nov 2016 21:07:45 +0100 Subject: [PATCH] remove redundant code --- api/validators.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/api/validators.py b/api/validators.py index 81cb5d1..12b032e 100644 --- a/api/validators.py +++ b/api/validators.py @@ -48,8 +48,6 @@ def validate_exists(*keys): def wrapper(*args, **kwargs): for key in keys: _check_parameter_exists(key) - if not key in request.args: - raise ValidationError('No {} is specified'.format(key)) return f(*args, **kwargs) return wrapper return decorator