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:
@ -4,6 +4,11 @@
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
import warnings
|
||||
|
||||
# supress warnings
|
||||
|
||||
warnings.filterwarnings("ignore")
|
||||
|
||||
# print "path", sys.path
|
||||
|
||||
|
@ -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>"
|
||||
|
Reference in New Issue
Block a user