-
Notifications
You must be signed in to change notification settings - Fork 275
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
Get speed.cd login URL instead of looping a list of URLs #3497
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #3497 +/- ##
===========================================
- Coverage 32.98% 32.97% -0.02%
===========================================
Files 275 275
Lines 34810 34894 +84
===========================================
+ Hits 11483 11505 +22
- Misses 23327 23389 +62
Continue to review full report at Codecov.
|
{'url': login_url}) | ||
continue | ||
if not (self.urls['login_post'] and self.login_url()): | ||
log.debug('Unable get login URL') |
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.
Unable to get login url
log.debug('Unable to connect to provider using login URL: {url}', | ||
{'url': self.urls['login_post']}) | ||
return False | ||
if re.search('Incorrect username or Password. Please try again.', response.text): |
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.
You need a regex for this? Can't just do 'sring' in response.text ?
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.
No ideia. I just removed the for loop. need to check history
They keep changing login URL (post)
@duramato