Mbonea commited on
Commit
f3d8c82
1 Parent(s): d86c84c

debug worker

Browse files
Files changed (1) hide show
  1. 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)