Skip to content

Commit 62336a4

Browse files
committed
FIXED: bug
1 parent af0d7fc commit 62336a4

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

cvemysql.py

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import cvemitre
66
import nvdnist
77
import platform
8+
import datetime
89
import zipfile
910
import getpass
1011
import pymysql

nvdnist.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,12 @@ def _pobject(self):
6363
self.kill = True
6464

6565
def _processFunction(self):
66-
while self.kill == False:
66+
while True:
6767
sys.stdout.write("\rCurrent progress: %d / %d" % (self._entry - len(self._wpList), self._entry))
6868
sys.stdout.flush()
69+
if self.kill:
70+
break
6971
time.sleep(5)
70-
71-
# To print a finish progress
72-
sys.stdout.write("\rDone!")
73-
sys.stdout.flush()
7472

7573
def start(self):
7674
self._coreThread = Thread(target=self._pobject)

0 commit comments

Comments
 (0)