fix: fixes bug in timeout change

pull/585/head
Christophe Vandeplas 2020-05-21 20:59:28 +02:00
parent d745d5b226
commit d09852fa4b
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ class PyMISP:
""" """
def __init__(self, url: str, key: str, ssl: bool=True, debug: bool=False, proxies: Mapping={}, def __init__(self, url: str, key: str, ssl: bool=True, debug: bool=False, proxies: Mapping={},
cert: Tuple[str, tuple]=None, auth: AuthBase=None, tool: str='', timeout: Union[float, Tuple[float, float]]=None): cert: Tuple[str, tuple]=None, auth: AuthBase=None, tool: str='', timeout: Union[float, Tuple[float, float], None]=None):
if not url: if not url:
raise NoURL('Please provide the URL of your MISP instance.') raise NoURL('Please provide the URL of your MISP instance.')
if not key: if not key: