mirror of
https://github.com/mvt-project/mvt.git
synced 2026-05-15 21:48:18 +02:00
Not using bare except and removed unused var
This commit is contained in:
@@ -103,8 +103,8 @@ class Manifest(IOSExtraction):
|
||||
parts = rel_path.split("_")
|
||||
for part in parts:
|
||||
try:
|
||||
part_parsed = URL(part)
|
||||
except:
|
||||
URL(part)
|
||||
except Exception:
|
||||
continue
|
||||
|
||||
ioc = self.indicators.check_domain(part)
|
||||
|
||||
@@ -62,7 +62,7 @@ class SafariHistory(IOSExtraction):
|
||||
|
||||
try:
|
||||
origin_domain = URL(result["url"]).domain
|
||||
except:
|
||||
except Exception:
|
||||
origin_domain = ""
|
||||
|
||||
# We loop again through visits in order to find redirect record.
|
||||
@@ -72,7 +72,7 @@ class SafariHistory(IOSExtraction):
|
||||
|
||||
try:
|
||||
redirect_domain = URL(redirect["url"]).domain
|
||||
except:
|
||||
except Exception:
|
||||
redirect_domain = ""
|
||||
|
||||
# If the redirect destination is the same domain as the origin,
|
||||
|
||||
Reference in New Issue
Block a user