python-ox: json decoder throws error when trying to throw error #1074

Closed
opened 2012-10-07 21:11:58 +00:00 by rlx · 1 comment
Owner

malformed json currently produces:

AttributeError: 'module' object has no attribute 'JSONDecodeError'
malformed json currently produces: ``` AttributeError: 'module' object has no attribute 'JSONDecodeError' ```
j was assigned by rlx 2012-10-07 21:11:58 +00:00
rlx added the
normal
defect
labels 2012-10-07 21:11:58 +00:00
rlx changed title from python-ox: json decoder should fail with a different error to python-ox: json decoder throws error when trying to throw error 2012-10-07 21:12:58 +00:00
Owner

got some sample code?

   import ox.utils
   ox.utils.json.loads('{broken:!}')

works ok here.

got some sample code? ``` import ox.utils ox.utils.json.loads('{broken:!}') ``` works ok here.
rlx added this to the 14.01 milestone 2013-05-29 14:21:45 +00:00
rlx added the
backend
python-ox
labels 2013-06-01 10:21:08 +00:00
rlx modified the milestone from 14.01 to 14.03 2014-02-09 19:08:08 +00:00
j added the
worksforme
label 2019-12-19 11:23:23 +00:00
j closed this issue 2019-12-19 11:23:23 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: 0x2620/pandora#1074
No description provided.