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

Replication troubleshooting: replication-inspect command #121

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

agoncharov-reef
Copy link

No description provided.

@agoncharov-reef agoncharov-reef force-pushed the replication-troubleshooting branch from 755c931 to efdaca6 Compare August 5, 2022 15:26
key = None
for key, value in rows:
self._print(' ' * 2 + key + ': ' + value)
if not key: # loop was not entered

Choose a reason for hiding this comment

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

Suggested change
if not key: # loop was not entered
if key is None: # loop was not entered

because an empty key will mess with this

Choose a reason for hiding this comment

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

also PEP8 says if you want to check if something is None, use if key is None, not if not key:

@agoncharov-reef agoncharov-reef force-pushed the replication-troubleshooting branch from efdaca6 to 869596b Compare August 19, 2022 11:31
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.

2 participants