Skip to content

Commit

Permalink
Merge pull request #245 from moliberga/master
Browse files Browse the repository at this point in the history
fix error logger
  • Loading branch information
Puyodead1 authored Oct 7, 2024
2 parents 71ecdb6 + 20ab43c commit d5633de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1312,8 +1312,8 @@ def handle_segments(url, format_id, lecture_id, video_title, output_path, chapte
logger.info("> Cleaning up temporary files...")
os.remove(video_filepath_enc)
os.remove(audio_filepath_enc)
except Exception:
logger.exception(f"Error: ")
except Exception as e:
logger.exception(f"Muxing error: {e}")
finally:
os.chdir(HOME_DIR)
# if the url is a file url, we need to remove the file after we're done with it
Expand Down

0 comments on commit d5633de

Please sign in to comment.