Skip to content

Commit

Permalink
Stop storelibraries command on SIGINT
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieurswag committed Oct 7, 2024
1 parent 6016284 commit 5b3ec21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/library/management/commands/storelibraries.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
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 5b3ec21

Please sign in to comment.