debug worker
Browse files- App/Worker.py +3 -0
App/Worker.py
CHANGED
@@ -97,7 +97,10 @@ def cleanup_temp_directory(
|
|
97 |
temp_dir: str, output_dir: str, chat_id: int = -1002069945904
|
98 |
):
|
99 |
try:
|
|
|
100 |
bot.send_file(chat_id, file=output_dir, caption="Your video caption")
|
|
|
|
|
101 |
finally:
|
102 |
# Cleanup: Remove the temporary directory
|
103 |
shutil.rmtree(temp_dir, ignore_errors=True)
|
|
|
97 |
temp_dir: str, output_dir: str, chat_id: int = -1002069945904
|
98 |
):
|
99 |
try:
|
100 |
+
print("sending...")
|
101 |
bot.send_file(chat_id, file=output_dir, caption="Your video caption")
|
102 |
+
except Exception as e:
|
103 |
+
print(e)
|
104 |
finally:
|
105 |
# Cleanup: Remove the temporary directory
|
106 |
shutil.rmtree(temp_dir, ignore_errors=True)
|