load_data raises an exception when parsing invalid JSON
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
YAQL |
In Progress
|
Undecided
|
Bob Haddleton |
Bug Description
In python3.4 the @load command raises an AttributeError exception when trying to parse invalid JSON:
Traceback (most recent call last):
File "/home/
data = json.loads(
File "/usr/local/
return _default_
File "/usr/local/
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/
raise ValueError(
ValueError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/
self.
File "/home/
print('Unable to parse data: ' + e.message)
AttributeError: 'ValueError' object has no attribute 'message'
The ValueError exception from json.loads() does not have a message attribute
Changed in yaql: | |
assignee: | nobody → Bob Haddleton (bob-haddleton) |
status: | New → In Progress |
Fix proposed to master: https:/ /review. openstack. org/#/c/ 559503/