fix: Bad URL in get_attachment

Fix #240
pull/252/head
Raphaël Vinot 2018-07-16 13:46:29 +02:00
parent b11ad18d2b
commit a81d2574fe
1 changed files with 1 additions and 1 deletions

View File

@ -1185,7 +1185,7 @@ class PyMISP(object):
:param attribute_id: Attribute ID to fetched
"""
url = urljoin(self.root_url, 'attributes/downloadAttachment/download/{}'.format(attribute_id))
url = urljoin(self.root_url, 'attributes/download/{}'.format(attribute_id))
response = self.__prepare_request('GET', url)
try:
response.json()