Improper handling of empty .json files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Meliae |
New
|
Undecided
|
Unassigned |
Bug Description
paul@ubuntu:
paul@ubuntu:
Traceback (most recent call last):
File "../env/
load_
File "/home/
objects = loader.
File "/home/
max_
File "/home/
factory=
File "/home/
% (line_num, len(objs), mb_read, input_mb, tdelta))
UnboundLocalError: local variable 'line_num' referenced before assignment
This error case should probably be handled in an assert, rather than silently assuming that the file has lines and then blowing up later .