Skip to content

Commit

Permalink
fixed something for people who clone
Browse files Browse the repository at this point in the history
haven't built new release yet, probably wont for a while unless people complain 馃
  • Loading branch information
Porocyonak committed Oct 11, 2019
1 parent d69f380 commit 58e652d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Open2Nord.py
Expand Up @@ -23,8 +23,8 @@ def wait_for_internet_connection():
while True:
try:
print("Attempting connection to NordVPN api...")
time.sleep(.3) # fix 10-11-19 for polling spam bug. not reflected in github release (yet?)
nordServers = requests.get('https://api.nordvpn.com/server')
time.sleep(.3)
print("Success!")
return nordServers
except requests.exceptions.ConnectionError:
Expand Down Expand Up @@ -217,4 +217,4 @@ def is_admin():
else:
# Re-run the program with admin rights
# ctypes.windll.shell32.ShellExecuteW(None, "runas", sys.executable, __file__, None, 1) # Causes problems when compiled into an EXE
input("Please restart and run as admin! (only matters for manual execution)")
input("Please restart and run as admin! (only matters for manual execution)")

0 comments on commit 58e652d

Please sign in to comment.