Ignore elements w/o values in SVG generation
If the OOM format has changed and the regular expression doesn't match, the values are None (js: undefined). Ignore such values now.
This commit is contained in:
parent
23b33e3763
commit
c2199bc029
@ -869,6 +869,10 @@ Killed process 6576 (java) total-vm:33914892kB, anon-rss:20629004kB, file-rss:0k
|
|||||||
|
|
||||||
nr_processed_elements = 0
|
nr_processed_elements = 0
|
||||||
for title, length in elements:
|
for title, length in elements:
|
||||||
|
# length is None/undefined is the regular expression doesn't find any values
|
||||||
|
if not length:
|
||||||
|
continue
|
||||||
|
|
||||||
rect_len = int(100 * length / sum_all_elements) * length_factor
|
rect_len = int(100 * length / sum_all_elements) * length_factor
|
||||||
|
|
||||||
if not rect_len:
|
if not rect_len:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user