print("{} products added to the list".format(count))
except IOError:
print("The list is corrupted!")
sys.exit()
// export a file that represents the cpe list
def exportList(self, exportFile=None):
listed = getattr(db, "get" + self.collection)()
After Change
try:
importFile = importFile.read().decode("utf-8").replace("\n", "").replace(" ", "")
except AttributeError:
importFile = importFile.decode("utf-8").replace("\n", "").replace(" ", "")
try:
for line in json.loads(importFile):