From 484910cf5c116e89e1f3e7159ab3c171b6f1d34b Mon Sep 17 00:00:00 2001 From: KnugiHK <24708955+KnugiHK@users.noreply.github.com> Date: Tue, 10 Sep 2024 00:15:25 +0800 Subject: [PATCH] Remove blocked code No plan on implementing this feature --- Whatsapp_Chat_Exporter/android_handler.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Whatsapp_Chat_Exporter/android_handler.py b/Whatsapp_Chat_Exporter/android_handler.py index 6a119a6..91f5d07 100644 --- a/Whatsapp_Chat_Exporter/android_handler.py +++ b/Whatsapp_Chat_Exporter/android_handler.py @@ -586,17 +586,6 @@ def media(db, data, media_folder, filter_date, filter_chat, separate_media=True) shutil.copy2(file_path, new_path) message.data = new_path else: - if False: # Block execution - try: - r = requests.get(content["message_url"]) - if r.status_code != 200: - raise RuntimeError() - except: - message.data = "The media is missing" - message.mime = "media" - message.meta = True - else: - ... message.data = "The media is missing" message.mime = "media" message.meta = True