]> git.0d.be Git - django-panik-nonstop.git/commitdiff
stamina: set async debug mode according to settings.DEBUG
authorFrédéric Péters <fpeters@0d.be>
Tue, 14 Jul 2020 09:00:57 +0000 (11:00 +0200)
committerFrédéric Péters <fpeters@0d.be>
Tue, 14 Jul 2020 09:00:57 +0000 (11:00 +0200)
nonstop/management/commands/stamina.py

index 329c684db42720eceed73f817c5a0851003d90f0..6b7533a1001d897d6101e05970b4472be4c0b96e 100644 (file)
@@ -7,6 +7,7 @@ import sys
 
 import requests
 
+from django.conf import settings
 from django.core.management.base import BaseCommand
 
 from emissions.models import Nonstop
@@ -22,7 +23,7 @@ class Command(BaseCommand):
 
     def handle(self, verbosity, **kwargs):
         try:
-            asyncio.run(self.main(), debug=True)
+            asyncio.run(self.main(), debug=settings.DEBUG)
         except KeyboardInterrupt:
             pass