should've tested fix, fixed fix

master
blank X 2 years ago
parent d878c80a64
commit 98b4a7a1b3

@ -157,8 +157,8 @@ async def main():
chat_sp.append(cpid or random_post.id)
print(random_post.id, random_post.shortlink)
return random_post, cpp
random_post, cpp = await client.loop.run_in_executor(None, _get_submission_blocc)
try:
random_post, cpp = await client.loop.run_in_executor(_get_submission_blocc)
await _actual_start_post(random_post, [chat], cpp, show_nsfw_warning, show_spoilers_warning)
except Exception:
logging.exception(random_post.id)

Loading…
Cancel
Save