diff --git a/src/service/clmcservice/alertsapi/views.py b/src/service/clmcservice/alertsapi/views.py
index 8ce0f83f03b0dc09d51b2053147c64787d616afd..729c55d014c129eeb52c61aeb89145e8e6119568 100644
--- a/src/service/clmcservice/alertsapi/views.py
+++ b/src/service/clmcservice/alertsapi/views.py
@@ -515,7 +515,7 @@ class AlertsConfigurationAPI(object):
         alerts_input_file = alert_spec_reference.file
 
         # allow only .yaml and .yml extensions for filename
-        if not (alerts_input_filename.lower().endswith('.yaml') and not alerts_input_filename.lower().endswith('.yml')):
+        if not alerts_input_filename.lower().endswith('.yaml') and not alerts_input_filename.lower().endswith('.yml'):
             raise HTTPBadRequest("Request to this API endpoint must include a (YAML) file input referenced as 'alert-spec' representing the TOSCA Alerts Specification.")
 
         # parse the alerts specification file