openschemas / openschemas-python

python library for interacting with schemas
https://openschemas.github.io/openschemas-python/
Other
2 stars 0 forks source link

[bug] format string #18

Closed vsoch closed 6 years ago

vsoch commented 6 years ago

Not huge rush to fix because only triggers on catch of error, but there is an extra %s here

Traceback (most recent call last):
  File "/opt/conda/bin/map2model", line 11, in <module>
    load_entry_point('openschemas==0.0.13', 'console_scripts', 'map2model')()
  File "/opt/conda/lib/python3.6/site-packages/openschemas-0.0.13-py3.6.egg/openschemas/cli/map2model/__init__.py", line 49, in main
    repo=args.repo)
  File "/opt/conda/lib/python3.6/site-packages/openschemas-0.0.13-py3.6.egg/openschemas/main/map2model/__init__.py", line 59, in main
    spec_parser.parse_front_matter()
  File "/opt/conda/lib/python3.6/site-packages/openschemas-0.0.13-py3.6.egg/openschemas/main/map2model/parser.py", line 270, in parse_front_matter
    all_specs = self._get_specs_list()
  File "/opt/conda/lib/python3.6/site-packages/openschemas-0.0.13-py3.6.egg/openschemas/main/map2model/parser.py", line 102, in _get_specs_list
    all_specs[name] = self.parser.get_mapping()
  File "/opt/conda/lib/python3.6/site-packages/openschemas-0.0.13-py3.6.egg/openschemas/main/map2model/mapping.py", line 383, in get_mapping
    print('Error finding parent %s! Is %s a valid entity?' %ptype)
TypeError: not enough arguments for format string
Exited with code 1