Coding standards.

This commit is contained in:
James Muscat 2015-07-01 21:44:42 +01:00
parent 8cdd2b4c84
commit a2ebb94c7a

View File

@ -132,7 +132,7 @@ def parse_and_error_handle(data):
# Here we check if an outdated schema has been passed # Here we check if an outdated schema has been passed
if parsed_message["$schemaRef"] in Settings.GATEWAY_OUTDATED_SCHEMAS.keys(): if parsed_message["$schemaRef"] in Settings.GATEWAY_OUTDATED_SCHEMAS.keys():
response.status = '426 Upgrade Required' # Bottle (and underlying httplib) don't know this one response.status = '426 Upgrade Required' # Bottle (and underlying httplib) don't know this one
statsCollector.tally("outdated") statsCollector.tally("outdated")
return "FAIL: The schema you have used need an upgrade. Update your software." return "FAIL: The schema you have used need an upgrade. Update your software."