Skip to content

Commit

Permalink
sources.smscalls: propogate errors if there are breaking schema changes
Browse files Browse the repository at this point in the history
  • Loading branch information
purarue authored and karlicoss committed Apr 15, 2023
1 parent c1028e6 commit f8525e7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/promnesia/sources/smscalls.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,18 @@ def index() -> Results:

for m in messages():

if isinstance(m, Exception):
yield m
continue

urls = extract_urls(m.message)
if len(urls) == 0:
continue

loc = Loc(title=f"SMS with {m.who} ({m.phone_number})")
if m.who is None:
loc = Loc(title=f"SMS with {m.phone_number}")
else:
loc = Loc(title=f"SMS with {m.who} ({m.phone_number})")

for u in urls:
yield Visit(
Expand Down

0 comments on commit f8525e7

Please sign in to comment.