Skip to content

Commit d6cadbb

Browse files
committed
Fix linter issues
1 parent 21aef98 commit d6cadbb

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

gkeep2notion.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ def login(keep: Keep, email: str):
218218
print('Authorization, this may take a while...')
219219
try:
220220
keep.resume(email, token)
221-
except:
221+
except Exception as ex:
222+
print('Token expired, logging in again')
223+
print(ex)
222224
authenticate(keep, email)
223225
else:
224226
authenticate(keep, email)
@@ -361,10 +363,6 @@ def url2uuid(url: str) -> str:
361363

362364
root_uuid = url2uuid(config.root_url)
363365

364-
print(config.root_url, root_uuid)
365-
366-
quit()
367-
368366
keep = Keep()
369367
login(keep, config.email)
370368

@@ -384,10 +382,10 @@ def url2uuid(url: str) -> str:
384382
glabels = []
385383
if args.labels:
386384
labels = args.labels.split(',')
387-
labels = [l.strip() for l in labels]
385+
labels = [label.strip() for label in labels]
388386
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)
391389
glabels.append(glabel)
392390

393391
query = ''

0 commit comments

Comments
 (0)