diff options
-rw-r--r-- | license_protected_downloads/management/commands/downloads_report.py | 4 | ||||
-rw-r--r-- | license_protected_downloads/management/commands/report_process.py | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/license_protected_downloads/management/commands/downloads_report.py b/license_protected_downloads/management/commands/downloads_report.py index 5b1de84..dabf5ef 100644 --- a/license_protected_downloads/management/commands/downloads_report.py +++ b/license_protected_downloads/management/commands/downloads_report.py @@ -1,3 +1,7 @@ +# suppress BeautifulSoup warning +import warnings +warnings.filterwarnings("ignore", category=UserWarning) + import datetime from django.conf import settings diff --git a/license_protected_downloads/management/commands/report_process.py b/license_protected_downloads/management/commands/report_process.py index f8b5d80..0377480 100644 --- a/license_protected_downloads/management/commands/report_process.py +++ b/license_protected_downloads/management/commands/report_process.py @@ -1,3 +1,7 @@ +# suppress BeautifulSoup warning +import warnings +warnings.filterwarnings("ignore", category=UserWarning) + from django.conf import settings from django.core.management.base import BaseCommand from license_protected_downloads.models import Download |