mirror of https://github.com/MISP/MISP-maltego
fix: [galaxies] UI msg internet is needed for galaxy download
parent
72d3b11523
commit
40e7d64482
|
@ -431,10 +431,13 @@ def galaxy_update_local_copy(force=False):
|
||||||
|
|
||||||
if force:
|
if force:
|
||||||
# download the latest zip of the public galaxy
|
# download the latest zip of the public galaxy
|
||||||
resp = requests.get(galaxy_archive_url)
|
try:
|
||||||
zf = ZipFile(io.BytesIO(resp.content))
|
resp = requests.get(galaxy_archive_url)
|
||||||
zf.extractall(local_path_root)
|
zf = ZipFile(io.BytesIO(resp.content))
|
||||||
zf.close()
|
zf.extractall(local_path_root)
|
||||||
|
zf.close()
|
||||||
|
except Exception:
|
||||||
|
raise(MaltegoException("ERROR: Could not download Galaxy data from htts://github.com/MISP/MISP-galaxy/. Please check internet connectivity."))
|
||||||
|
|
||||||
# generate the uuid mapping and save it to a file
|
# generate the uuid mapping and save it to a file
|
||||||
galaxies_fnames = []
|
galaxies_fnames = []
|
||||||
|
|
Loading…
Reference in New Issue