1
0
mirror of https://github.com/peeringdb/peeringdb.git synced 2024-05-11 05:55:09 +00:00

move warning supression to in.whoisd

This commit is contained in:
Stefan Pratter
2023-10-25 14:38:50 +00:00
parent a0e8fa4f51
commit c58d8c8655
2 changed files with 5 additions and 4 deletions

View File

@ -4,6 +4,11 @@
import logging
import os
import sys
import warnings
# supress warnings
warnings.filterwarnings("ignore")
# print "path", sys.path

View File

@ -2,7 +2,6 @@
Command line whois.
"""
import logging
import warnings
from django.contrib.auth.models import AnonymousUser
from django_handleref import util
@ -13,9 +12,6 @@ from peeringdb_server.util import APIPermissionsApplicator
from ._db_command import DBCommand
# This will suppress all warnings
warnings.filterwarnings("ignore")
class Command(DBCommand):
args = "<customer id>"