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

Improve exception handling and error messages #18

Open
thatvideoshopguy opened this issue Apr 12, 2023 · 2 comments
Open

Improve exception handling and error messages #18

thatvideoshopguy opened this issue Apr 12, 2023 · 2 comments

Comments

@thatvideoshopguy
Copy link
Contributor

Description

To provide clearer error messages and help users understand issues, we should handle exceptions more specifically and provide informative error messages. Consider using a more specific exception and provide a helpful error message.

Example

In the convert() function, there is a generic except Exception block:

try:
    content = content.replace(partmatch, temp_pattern)
except Exception:
    print(temp_pattern)
@shashankshet
Copy link

Hi @thatvideoshopguy can you assign this task to me?

The requirment is just to provide generic exception handling to each fuction right?

@B-R-P
Copy link
Collaborator

B-R-P commented May 23, 2023

Generic exceptions are used for debugging purposes. It will be removed.

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

No branches or pull requests

3 participants