mirror of
https://github.com/mvt-project/mvt.git
synced 2024-07-01 08:29:03 +00:00
Not using bare except and removed unused var
This commit is contained in:
parent
631354c131
commit
f536af1124
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user