-
Notifications
You must be signed in to change notification settings - Fork 24
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
adds repeats to try fix len(dns). Issue79 #252
base: dev
Are you sure you want to change the base?
Conversation
resolve apel#79 . i have just looped everything in the try statement although i am not sure if it is whats needed.
fails = 0 | ||
while fails < 3 and len(dns) == 0: | ||
for line in lines: | ||
if line.isspace() or line.strip().startswith('#'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The lines inside the for loop should be indented 4 spaces.
if len(dns) == 0: | ||
fails = 0 | ||
while fails < 3 and len(dns) == 0: | ||
for line in lines: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is lines
still being defined here?
# If no valid DNs, SSM cannot receive any messages. | ||
if len(dns) == 0: | ||
fails = 0 | ||
while fails < 3 and len(dns) == 0: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fails
is never being incremented, so will never reach 3
Also, could these changes be rebased into one commit? You might need Tom to help you :) |
resolve apel#79 . i have just looped everything in the try statement although i am not sure if it is whats needed.
Okay, I have tried - but I am at a loss as to why this isn't working. I thought I had it, but it's just added another commit and merge. |
huh, weird. maybe don't worry about it then? |
resolve #79