-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
questionAsking for support or clarificationAsking for support or clarification
Description
Hello, thank you for great plugin! ❤️
I have a question about TRY003 rule, because now it raise an error on built-in exceptions.
len_str = 129
if len_str > 128:
raise ValueError("String must be lower than 128 chars")Ruff output:
TRY003 Avoid specifying long messages outside the exception classShould it be like this? If don't, should we add some optional rule in settings for ignoring built-in exceptions for this rule or not?
Ruff version: 0.0.236
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionAsking for support or clarificationAsking for support or clarification