Skip to content

Commit f29583e

Browse files
committed
fucking whois packages...
1 parent 275ce0e commit f29583e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

habu/cli/cmd_whois_domain.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@
44
import warnings
55

66
import click
7-
import whois
7+
8+
# next lines because the pypi package python-whois uses the namespace 'whois' and
9+
# the Debian python3-pywhois uses the namespace 'pywhois' at least on 2018-11-03
10+
try:
11+
import pywhois as whois
12+
except ModuleNotFoundError:
13+
import whois
814

915

1016
def remove_duplicates(data):

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name='habu',
8-
version='0.0.87',
8+
version='0.0.88',
99
description='Python Network Hacking Toolkit',
1010
long_description=readme,
1111
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)