Skip to content

Fix bare except clause in YouTube upload_video()#183

Open
Hi-Gaurav wants to merge 1 commit intoFujiwaraChoki:mainfrom
Hi-Gaurav:fix/youtube-bare-except
Open

Fix bare except clause in YouTube upload_video()#183
Hi-Gaurav wants to merge 1 commit intoFujiwaraChoki:mainfrom
Hi-Gaurav:fix/youtube-bare-except

Conversation

@Hi-Gaurav
Copy link
Copy Markdown

Fixes #182

Changes

  • Replace bare except: with except Exception as e:
  • Log the error before returning False

Replace bare `except:` with `except Exception as e:` and log the error.
The bare except catches KeyboardInterrupt and SystemExit, preventing
graceful shutdown and silently swallowing all errors during upload.
@FujiwaraChoki
Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@FujiwaraChoki
Copy link
Copy Markdown
Owner

Great, merged

@Hi-Gaurav
Copy link
Copy Markdown
Author

issue is still open

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bare except clause in YouTube upload_video() swallows all errors

2 participants