diff --git a/nhentai/cmdline.py b/nhentai/cmdline.py index efe43ab..7621715 100644 --- a/nhentai/cmdline.py +++ b/nhentai/cmdline.py @@ -11,8 +11,12 @@ import nhentai.constant as constant from nhentai.utils import urlparse from nhentai.logger import logger -reload(sys) -sys.setdefaultencoding(sys.stdin.encoding) +try: + reload(sys) + sys.setdefaultencoding(sys.stdin.encoding) +except NameError: + # python3 + pass def banner():