from django.core.management.base import BaseCommand, CommandError
from cve_parser.xml_parser import cve_xml_parser


class Command(BaseCommand):
    help = 'Runs The CVE xml transformer'

    def handle(self, *args, **options):
        try:
            cve_xml_parser.db_store_entries()
        except:
            raise CommandError('Command did not run ')
