From 2f1651018306e805f5a27c4675b96855e99e0923 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 29 Sep 2022 08:08:40 +0200 Subject: [PATCH] specify which error it was in process_streamer() --- files/routes/static.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/files/routes/static.py b/files/routes/static.py index 0d55ace29..e5e2a6270 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -459,7 +459,8 @@ if SITE == 'pcmemes.net': try: count = int(count.replace('.', '')) except Exception as e: - print(e) + print('count error', flush=True) + print(e, flush=True) with open('files/assets/count.txt', 'w', encoding='utf-8') as f: f.write(text) return None @@ -511,7 +512,8 @@ if SITE == 'pcmemes.net': print(req.url, flush=True) try: thumb = t.group(2) except Exception as e: - print(e) + print('thumb error', flush=True) + print(e, flush=True) with open('files/assets/thumb.txt', 'w', encoding='utf-8') as f: f.write(text) return None