def __init__(self, errno, message):
        HTTPError.__init__(self, 599, message)
        self.errno = errno

        import requests
        a = requests.get("google.com", verify=False)
        print(a)
示例#2
0
 def __init__(self, errno, message):
     HTTPError.__init__(self, 599, message)
     self.errno = errno
 def __init__(self, errno, message):
     HTTPError.__init__(self, 599, message)
     self.errno = errno
示例#4
0
 def __init__(self, errno: int, message: str) -> None:
     HTTPError.__init__(self, 599, message)
     self.errno = errno
示例#5
0
 def __init__(self, errno: int, message: str) -> None:
     HTTPError.__init__(self, 599, message)
     self.errno = errno
示例#6
0
文件: sw_base.py 项目: uve/shiva
 def __init__(self, status_code, user_message, log_message=None, *args):
     HTTPError.__init__(self, status_code, log_message, *args) 
     self.user_message = user_message 
示例#7
0
文件: sw_base.py 项目: uve/shiva
 def __init__(self, status_code, user_message, log_message=None, *args):
     HTTPError.__init__(self, status_code, log_message, *args)
     self.user_message = user_message