Skip to content

Commit

Permalink
fix: print when error happened and continue
Browse files Browse the repository at this point in the history
  • Loading branch information
rwxd committed Feb 23, 2023
1 parent 5d839f0 commit cf695bf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions wallabag2readwise/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,12 @@ def reader(
for entry in wallabag_entries:
console.print(f'=> Importing {entry.title}')
location = 'archive' if entry.archived else 'new'
readwise.create(
entry.url, tags=[t.label for t in entry.tags], location=location
)
try:
readwise.create(
entry.url, tags=[t.label for t in entry.tags], location=location
)
except Exception as e:
console.print(f'==> Error: {e}')


@app.command()
Expand Down

0 comments on commit cf695bf

Please sign in to comment.