Skip to content

Commit

Permalink
added another debug check
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Moberly committed Oct 4, 2020
1 parent c893279 commit 4c8cc65
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions linkedin2username.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

########## BEGIN GLOBAL DECLARATIONS ##########

CURRENT_REL = '0.18'
CURRENT_REL = '0.19'
BANNER = r"""
.__ .__________
Expand Down Expand Up @@ -277,10 +277,15 @@ def login(args):
" number to your profile. Please handle that in the web and"
" then try again.")
return False
if 'manage-account' in redirect:
print(PC.warn_box + "LinkedIn has some account notification for you"
" to check. Plese log in first via the web and clear that.")
return False

# The below will detect some 302 that I don't yet know about.
print(PC.warn_box + "Some unknown redirection occurred. If this"
" persists, please open an issue on github.\n")
" persists, please open an issue on github wih the DEBUG"
" message below:\n")
print("DEBUG INFO:")
print("LOCATION: {}".format(redirect))
print("RESPONSE TEXT:\n{}".format(response.text))
Expand Down

0 comments on commit 4c8cc65

Please sign in to comment.