diff --git a/mvt/ios/modules/backup/manifest.py b/mvt/ios/modules/backup/manifest.py index 0c3488c..027c8e2 100644 --- a/mvt/ios/modules/backup/manifest.py +++ b/mvt/ios/modules/backup/manifest.py @@ -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) diff --git a/mvt/ios/modules/mixed/safari_history.py b/mvt/ios/modules/mixed/safari_history.py index 4261953..90afd57 100644 --- a/mvt/ios/modules/mixed/safari_history.py +++ b/mvt/ios/modules/mixed/safari_history.py @@ -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,