chg: Improve deprecation message on PyMISP

pull/421/head
Raphaël Vinot 2019-07-17 17:12:28 +02:00
parent e357ec91e9
commit 2d0d36e578
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ class PyMISP(object): # pragma: no cover
warning_2020() warning_2020()
@deprecated(reason="Please use ExpandedPyMISP instead (requires Python 3.6+). This class will be removed an alias of ExpandedPyMISP early 2020.") @deprecated(reason="Please use ExpandedPyMISP instead (requires Python 3.6+). This class will be an alias of ExpandedPyMISP early 2020 and your code will most probably fail.")
def __init__(self, url, key, ssl=True, out_type='json', debug=None, proxies=None, cert=None, asynch=False, auth=None, tool=None): def __init__(self, url, key, ssl=True, out_type='json', debug=None, proxies=None, cert=None, asynch=False, auth=None, tool=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.')