adulau/cve-search

bin/db_mgmt_cpe_other_dictionary.py

adulau opened this issue · 2 comments

Starting cpeother
Traceback (most recent call last):
File "/home/adulau/git/cve-search/bin/db_mgmt_cpe_other_dictionary.py", line 65, in
for item in progressbar(list(collections)):
File "/home/adulau/git/cve-search/bin/../lib/ProgressBar.py", line 21, in progressbar
_show(0)
File "/home/adulau/git/cve-search/bin/../lib/ProgressBar.py", line 17, in _show
x = int(size * _i / count)
ZeroDivisionError: division by zero

Fixed with a forced reimport.

If the collection is empty...

Starting cpeother
Traceback (most recent call last):
  File "/home/adulau/git/cve-search/bin/db_mgmt_cpe_other_dictionary.py", line 65, in <module>
    for item in progressbar(list(collections)):
  File "/home/adulau/git/cve-search/bin/../lib/ProgressBar.py", line 21, in progressbar
    _show(0)
  File "/home/adulau/git/cve-search/bin/../lib/ProgressBar.py", line 17, in _show
    x = int(size * _i / count)
ZeroDivisionError: division by zero