mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-05-30 12:04:52 -04:00
Merge pull request #151 from nlevitt/no-cerberus-normalize
don't attempt cerberus normalization
This commit is contained in:
commit
d4386491df
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
brozzler/models.py - model classes representing jobs, sites, and pages, with
|
||||
related logic
|
||||
|
||||
Copyright (C) 2014-2018 Internet Archive
|
||||
Copyright (C) 2014-2019 Internet Archive
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
|
@ -48,7 +48,7 @@ class InvalidJobConf(Exception):
|
|||
|
||||
def validate_conf(job_conf, schema=load_schema()):
|
||||
v = JobValidator(schema)
|
||||
if not v.validate(job_conf):
|
||||
if not v.validate(job_conf, normalize=False):
|
||||
raise InvalidJobConf(v.errors)
|
||||
|
||||
def merge(a, b):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue