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

Try Section #108

Open
erenkarakal opened this issue May 13, 2024 · 0 comments
Open

Try Section #108

erenkarakal opened this issue May 13, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@erenkarakal
Copy link

Is your feature request related to a problem? Please describe.
I have a function that loads stuff from a file and each line can throw some sort of exception. I can't handle the exception without adding try to every single line and checking last exception after each.

Describe the solution you'd like
new section

try:
  # code
if last exception is set:

or, function support
try function()

@sovdeeth sovdeeth added the enhancement New feature or request label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants