mirror of
https://github.com/RicterZ/nhentai.git
synced 2025-04-20 02:41:19 +02:00
try ... except for reload
This commit is contained in:
parent
6bd0a6b96a
commit
ad64a5685a
@ -11,8 +11,12 @@ import nhentai.constant as constant
|
|||||||
from nhentai.utils import urlparse
|
from nhentai.utils import urlparse
|
||||||
from nhentai.logger import logger
|
from nhentai.logger import logger
|
||||||
|
|
||||||
reload(sys)
|
try:
|
||||||
sys.setdefaultencoding(sys.stdin.encoding)
|
reload(sys)
|
||||||
|
sys.setdefaultencoding(sys.stdin.encoding)
|
||||||
|
except NameError:
|
||||||
|
# python3
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def banner():
|
def banner():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user