From 8ff8e599d85711544a6ecf2ea85c256c80308407 Mon Sep 17 00:00:00 2001 From: Nex Date: Tue, 28 Jun 2022 12:00:30 +0200 Subject: [PATCH] Fixed flake8 and minor code style --- mvt/common/indicators.py | 1 - mvt/common/logo.py | 1 + mvt/common/updates.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mvt/common/indicators.py b/mvt/common/indicators.py index 5a0684d..3ddb29d 100644 --- a/mvt/common/indicators.py +++ b/mvt/common/indicators.py @@ -7,7 +7,6 @@ import json import logging import os -import requests from appdirs import user_data_dir from .url import URL diff --git a/mvt/common/logo.py b/mvt/common/logo.py index 2f4665f..eb91c1f 100644 --- a/mvt/common/logo.py +++ b/mvt/common/logo.py @@ -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!") return + def logo() -> None: print("\n") print("\t[bold]MVT[/bold] - Mobile Verification Toolkit") diff --git a/mvt/common/updates.py b/mvt/common/updates.py index b66833a..dba5d90 100644 --- a/mvt/common/updates.py +++ b/mvt/common/updates.py @@ -67,7 +67,7 @@ class IndicatorsUpdates: res = requests.get(url) if res.status_code != 200: log.error("Failed to retrieve indicators index located at %s (error %d)", - index_url, res.status_code) + url, res.status_code) return None return yaml.safe_load(res.content)