Skip to content

Commit

Permalink
Merge pull request #903 from intuitem/CA-481-Stop-storelibraries-comm…
Browse files Browse the repository at this point in the history
…and-on-SIGINT

Stop storelibraries command on SIGINT
  • Loading branch information
Mohamed-Hacene authored Oct 8, 2024
2 parents da0c4cc + 4544fe1 commit 4ff6241
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/library/management/commands/storelibraries.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
from pathlib import Path

import structlog
import structlog, signal
from ciso_assistant.settings import LIBRARIES_PATH
from core.models import StoredLibrary
from django.core.management.base import BaseCommand

logger = structlog.getLogger(__name__)

signal.signal(signal.SIGINT, signal.SIG_DFL)


class Command(BaseCommand):
help = "Store libraries in the database"
Expand Down

0 comments on commit 4ff6241

Please sign in to comment.