From 454155b2206d39ef862f043fe3a098d13017a54d Mon Sep 17 00:00:00 2001 From: frxz751113 <156018267+frxz751113@users.noreply.github.com> Date: Thu, 29 Aug 2024 20:38:03 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E9=85=92=E5=BA=97=E6=BA=90.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- py/酒店源.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/py/酒店源.py b/py/酒店源.py index 4463def..ac82633 100644 --- a/py/酒店源.py +++ b/py/酒店源.py @@ -156,9 +156,6 @@ for url in valid_urls: pass # 写入到文件中 - with open('iptv.txt', 'a', encoding='utf-8') as outfile: - outfile.write(new_line + '\n') - except requests.exceptions.RequestException as e: - print(f"Error fetching or processing the JSON data: {e}") - +with open('iptv.txt', 'a', encoding='utf-8') as outfile: + outfile.write(new_line + '\n') print("频道列表文件iptv.txt获取完成!")