diff options
author | Kelley Spoon <kelley.spoon@linaro.org> | 2021-11-11 09:44:14 -0600 |
---|---|---|
committer | Kelley Spoon <kelley.spoon@linaro.org> | 2021-11-11 20:00:55 +0000 |
commit | a779fbdd6371569c6d8211a9b8c091f56d8fea1d (patch) | |
tree | f81aa3fcd10248beb4cb049800ffb4edb16ba7ff | |
parent | 845c6f81d7efb6699458b22a779dda2f82282009 (diff) | |
download | linaro-license-protection-a779fbdd6371569c6d8211a9b8c091f56d8fea1d.tar.gz |
manage.py: silence beautifulsoup warnings
BeautifulSoup produces and UserWarning when imported reminding the user
that the version we're using is EOL and that we should be upgrading it
soon.
This warning is producing output that is causing crontab to email when
there are no errors or problems to report. Let's silence it until
we can finally update the software.
Change-Id: Ic45819c0f22ff91b2f2b5138433d69428cbeec95
Reviewed-on: https://review.linaro.org/c/infrastructure/linaro-license-protection/+/40042
Reviewed-by: Riku Voipio <riku.voipio@linaro.org>
-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 |