Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-10-13 00:11:41 +02:00
parent 4c7f5b6c9a
commit 8ee11a691d

View File

@ -34,7 +34,7 @@ def handle_cmd(args):
if args.plugincmd == 'auth':
return auth()
elif args.plugincmd == 'refresh':
return refresh(args)
return refresh()
raise NotImplementedError()
@ -57,8 +57,7 @@ def auth():
return 0
def refresh(args):
if int(args):
def refresh():
# refresh token for x amount of time (seconds)
gauth = GoogleAuth(settings_file="settings.yaml")
try: