Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace try except generic with specific exception #39

Open
Helias opened this issue Nov 10, 2023 · 0 comments
Open

replace try except generic with specific exception #39

Helias opened this issue Nov 10, 2023 · 0 comments
Labels
good first issue Good for newcomers

Comments

@Helias
Copy link
Member

Helias commented Nov 10, 2023

if I close opis-api service the python script will crash saying "SSL error" without the try-except here 6391763 , ideally we should replace that generic except with a specific exception handling only the ssl error

how to reproduce the error:

  • close opis api service going to /srv/docker/opis-api/ -> docker-compose stop
  • write except e as Exception: print(str(e))
  • set the exact exception name and replace the generic one
@Helias Helias added the good first issue Good for newcomers label Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant