mirror of
https://github.com/THIS-IS-NOT-A-BACKUP/zspotify.git
synced 2026-01-10 17:00:01 +00:00
Reprompt when no input given
This commit is contained in:
@@ -43,7 +43,9 @@ class ZSpotify:
|
||||
except RuntimeError:
|
||||
pass
|
||||
while True:
|
||||
user_name = input('Username: ')
|
||||
user_name = ''
|
||||
while len(user_name) == 0:
|
||||
user_name = input('Username: ')
|
||||
password = getpass()
|
||||
try:
|
||||
cls.SESSION = Session.Builder().user_pass(user_name, password).create()
|
||||
|
||||
Reference in New Issue
Block a user