mirror of https://github.com/mvt-project/mvt.git
Fixed flake8 and minor code style
This commit is contained in:
parent
815cdc0a88
commit
8ff8e599d8
|
@ -7,7 +7,6 @@ import json
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
||||||
import requests
|
|
||||||
from appdirs import user_data_dir
|
from appdirs import user_data_dir
|
||||||
|
|
||||||
from .url import URL
|
from .url import URL
|
||||||
|
|
|
@ -38,6 +38,7 @@ def check_updates() -> None:
|
||||||
print("\t\t[bold]There are updates to your indicators files! Run the `download-iocs` command to update!")
|
print("\t\t[bold]There are updates to your indicators files! Run the `download-iocs` command to update!")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
def logo() -> None:
|
def logo() -> None:
|
||||||
print("\n")
|
print("\n")
|
||||||
print("\t[bold]MVT[/bold] - Mobile Verification Toolkit")
|
print("\t[bold]MVT[/bold] - Mobile Verification Toolkit")
|
||||||
|
|
|
@ -67,7 +67,7 @@ class IndicatorsUpdates:
|
||||||
res = requests.get(url)
|
res = requests.get(url)
|
||||||
if res.status_code != 200:
|
if res.status_code != 200:
|
||||||
log.error("Failed to retrieve indicators index located at %s (error %d)",
|
log.error("Failed to retrieve indicators index located at %s (error %d)",
|
||||||
index_url, res.status_code)
|
url, res.status_code)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
return yaml.safe_load(res.content)
|
return yaml.safe_load(res.content)
|
||||||
|
|
Loading…
Reference in New Issue