From 20797b44cd58e8a9eafac05d3534debfe938308f Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Sat, 5 Oct 2024 19:48:09 +0200 Subject: [PATCH] Clean up imports Signed-off-by: Georg Pfuetzenreuter --- plugin.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/plugin.py b/plugin.py index b0d13bd..ce6e9fd 100644 --- a/plugin.py +++ b/plugin.py @@ -29,14 +29,8 @@ ### from supybot import ( - utils, - plugins, ircutils, callbacks, - ircdb, - conf, - log, - world, ircmsgs, ) from supybot.commands import * @@ -51,15 +45,11 @@ except ImportError: _ = lambda x: x import re -import os -import sys -import time -import sqlite3 import redis import json from datetime import timedelta from ipwhois import IPWhois -import ipwhois +from ipwhois.exceptions import IPDefinedError class SnoParser(callbacks.Plugin): @@ -135,7 +125,7 @@ class SnoParser(callbacks.Plugin): country = whoisres["asn_country_code"] description = whoisres["asn_description"] whoisout = asn + " " + country + " " + description - except ipwhois.exceptions.IPDefinedError: + except IPDefinedError: whoisout = "RFC 4291 (Local)" response = whoisout