File tree 1 file changed +6
-8
lines changed
1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -218,7 +218,9 @@ def login(keep: Keep, email: str):
218
218
print ('Authorization, this may take a while...' )
219
219
try :
220
220
keep .resume (email , token )
221
- except :
221
+ except Exception as ex :
222
+ print ('Token expired, logging in again' )
223
+ print (ex )
222
224
authenticate (keep , email )
223
225
else :
224
226
authenticate (keep , email )
@@ -361,10 +363,6 @@ def url2uuid(url: str) -> str:
361
363
362
364
root_uuid = url2uuid (config .root_url )
363
365
364
- print (config .root_url , root_uuid )
365
-
366
- quit ()
367
-
368
366
keep = Keep ()
369
367
login (keep , config .email )
370
368
@@ -384,10 +382,10 @@ def url2uuid(url: str) -> str:
384
382
glabels = []
385
383
if args .labels :
386
384
labels = args .labels .split (',' )
387
- labels = [l .strip () for l in labels ]
385
+ labels = [label .strip () for label in labels ]
388
386
labels = list (filter (lambda l : l != '' , labels ))
389
- for l in labels :
390
- glabel = keep .findLabel (l )
387
+ for label in labels :
388
+ glabel = keep .findLabel (label )
391
389
glabels .append (glabel )
392
390
393
391
query = ''
You can’t perform that action at this time.
0 commit comments