Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

use warnings rather than logging a warning for DecimalField warnings#9367

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

terencehonles
Copy link
Contributor

Description

addressing#8972 (comment)

sevdog reacted with thumbs up emoji
@auvipyauvipy merged commite596f43 intoencode:masterApr 27, 2024
@terencehonlesterencehonles deleted the use-warnings-rather-than-logging branchMay 7, 2024 12:03
@tomchristietomchristie mentioned this pull requestJun 14, 2024
if self.min_value is not None and not isinstance(self.min_value, decimal.Decimal):
logger.warning("min_valuein DecimalFieldshould be Decimaltype.")
warnings.warn("min_value should beaDecimalinstance.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Could you add astacklevel param so that python displays a trace with the faulty calling code rather than this line?

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

@merwokmerwokmerwok left review comments

@auvipyauvipyauvipy approved these changes

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@terencehonles@merwok@auvipy

[8]ページ先頭

©2009-2025 Movatter.jp