specify which error it was in process_streamer()

master
Aevann1 2022-09-29 08:08:40 +02:00
parent 87f3af5968
commit 2f16510183
1 changed files with 4 additions and 2 deletions

View File

@ -459,7 +459,8 @@ if SITE == 'pcmemes.net':
try: count = int(count.replace('.', '')) try: count = int(count.replace('.', ''))
except Exception as e: 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: with open('files/assets/count.txt', 'w', encoding='utf-8') as f:
f.write(text) f.write(text)
return None return None
@ -511,7 +512,8 @@ if SITE == 'pcmemes.net':
print(req.url, flush=True) print(req.url, flush=True)
try: thumb = t.group(2) try: thumb = t.group(2)
except Exception as e: 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: with open('files/assets/thumb.txt', 'w', encoding='utf-8') as f:
f.write(text) f.write(text)
return None return None