Skip to content

Commit

Permalink
Minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fedecalendino committed Feb 20, 2023
1 parent 4201ee8 commit 2b7d813
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@
</dict>
</array>
<key>version</key>
<string>0.2.0</string>
<string>0.2.1</string>
<key>webaddress</key>
<string>https://github.com/fedecalendino/alfred-minute-inbox</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "Minute Inbox"
version = "0.2.0"
version = "0.2.1"
description = "Get a disposable 10 minute email address"
documentation = "https://github.com/fedecalendino/alfred-minute-inbox/blob/main/README.md"
homepage = "https://github.com/fedecalendino/alfred-minute-inbox"
Expand Down
9 changes: 6 additions & 3 deletions src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ def restore_cached_inbox(workflow):
token=token,
)

_ = inbox.expires_in

return inbox
try:
_ = inbox.expires_in
return inbox
except ValueError as exc:
delete_cached_inbox(workflow)
raise exc


def delete_cached_inbox(workflow):
Expand Down

0 comments on commit 2b7d813

Please sign in to comment.