Skip to content
This repository was archived by the owner on Jun 11, 2022. It is now read-only.
This repository was archived by the owner on Jun 11, 2022. It is now read-only.

Uncaught ValueError when adding a non-JSON blueprint #20

Description

@dmtucker
$ yaas blueprint add README.md 
Traceback (most recent call last):
  File "/usr/local/bin/yaas", line 9, in <module>
    load_entry_point('yaas==0.0.1', 'console_scripts', 'yaas')()
  File "/usr/local/lib/python2.7/dist-packages/yaas-0.0.1-py2.7.egg/yaas/__main__.py", line 75, in main
    commands[args.command](subparsers.choices[args.command], extra)
  File "/usr/local/lib/python2.7/dist-packages/yaas-0.0.1-py2.7.egg/yaas/blueprint.py", line 30, in command
    extra)
  File "/usr/local/lib/python2.7/dist-packages/yaas-0.0.1-py2.7.egg/yaas/blueprint.py", line 48, in _add
    blueprint = json.loads(blueprint)
  File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

Tracebacks should only show when a bug exists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions