Skip to content
This repository has been archived by the owner on Jan 14, 2024. It is now read-only.

Commit

Permalink
Resolve little typing issue in case of IndexError:
Browse files Browse the repository at this point in the history
```
  File "/usr/lib/python3.8/site-packages/rkd/yaml_parser.py", line 64, in load
    raise YAMLFileValidationError(e)
  File "/usr/lib/python3.8/site-packages/rkd/exception.py", line 51, in __init__
    '.'.join(err.path), err.message
TypeError: sequence item 2: expected str instance, int found
```
  • Loading branch information
blackandred committed Aug 19, 2020
1 parent 62742de commit 2278d93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rkd/exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class YAMLFileValidationError(YamlParsingException):

def __init__(self, err: ValidationError):
super().__init__('YAML schema validation failed at path "%s" with error: %s' % (
'.'.join(err.path), str(err.message)
str(list(err.path)), str(err.message)
))


Expand Down

0 comments on commit 2278d93

Please sign in to comment.