should've tested fix, fixed fix

This commit is contained in:
blank X 2020-09-16 19:13:57 +07:00
parent d878c80a64
commit 98b4a7a1b3
1 changed files with 1 additions and 1 deletions

View File

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