Skip to content

Conversation

@scyrock
Copy link
Contributor

@scyrock scyrock commented May 11, 2025

No description provided.



class PolarError(Exception):
def __init__(self, message):
Copy link
Owner

@dakk dakk May 12, 2025

Choose a reason for hiding this comment

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

This is not necessery; Exception already receives a list of arguments which are stored in Exception().args; you can put a "pass" in the body of the class

Copy link
Owner

Choose a reason for hiding this comment

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

class PolarError(Exception):
  pass

is enough

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am sorry, I missed it in my last commit.

Copy link
Owner

@dakk dakk May 15, 2025

Choose a reason for hiding this comment

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

Still wrong:

class PolarError(Exception):
   pass

@dakk dakk linked an issue May 12, 2025 that may be closed by this pull request


class PolarError(Exception):
def __init__(self, message):
Copy link
Owner

Choose a reason for hiding this comment

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

class PolarError(Exception):
  pass

is enough

@dakk dakk marked this pull request as ready for review May 14, 2025 09:03
Copy link
Owner

@dakk dakk left a comment

Choose a reason for hiding this comment

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

PolarError needs a fix

@dakk dakk merged commit 217b02f into dakk:master May 15, 2025
9 checks passed
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

Successfully merging this pull request may close these issues.

Validate polar files

2 participants