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

WIP: Add generic friends to KingMaker, refactor tasks, rework building of tarballs #22

Merged
merged 16 commits into from
Sep 12, 2023

Conversation

harrypuuter
Copy link
Contributor

No description provided.

@conformist89
Copy link
Member

It looks good to me

# sanitize the scopes information
try:
self.scopes = ast.literal_eval(str(self.scopes))
except:
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't it be beneficial to state the expected errors explicitly/use contextlib.suppress if no change is applied in case of occurring Exception?

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 rewrote the function to be much simpler :D

# sanitize the shifts information
try:
self.shifts = ast.literal_eval(str(self.shifts))
except:
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't it be beneficial to state the expected errors explicitly/use contextlib.suppress if no change is applied in case of occurring Exception?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

s.o.

Copy link
Contributor

@a-monsch a-monsch left a comment

Choose a reason for hiding this comment

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

It looks fine to me as well (in addition to the minor comments mentioned above)

@harrypuuter
Copy link
Contributor Author

If you are happy with the PR, please set an approve @conformist89 @a-monsch

@harrypuuter harrypuuter merged commit 5c17b59 into main Sep 12, 2023
1 check passed
@harrypuuter harrypuuter deleted the generic_friends branch September 12, 2023 07:50
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.

3 participants