Skip to content

Commit

Permalink
Update common.py
Browse files Browse the repository at this point in the history
Fix python2 compatibility
  • Loading branch information
mlasevich committed Aug 20, 2019
1 parent ca0b1d9 commit ded7cc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/quick_scheme/validators/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
LOG = logging.getLogger(__name__)


def failure(field_value, fmt, *args, level=logging.INFO):
def failure(field_value, fmt, *args, **kwargs):
''' Print a Validation Failure Message '''
level = kwargs.get('level', logging.INFO)
LOG.log(level, "Invalid Value for field '%s' in node '%s': %s",
field_value.name(), field_value.node.quick_scheme.path_str(),
fmt % args)
Expand Down

0 comments on commit ded7cc4

Please sign in to comment.