Skip to content

Commit

Permalink
[core] Fix Python 3.7 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba2k2 committed Mar 19, 2024
1 parent 101ee76 commit 1ae5f9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ltchiptool/gui/work/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def run(self):
except Exception as e:
if self.should_run():
# show exceptions only if not cancelled
exception(None, exc_info=e)
exception("An error has occurred", exc_info=e)
self.stop()

if self.on_stop:
Expand Down
2 changes: 1 addition & 1 deletion ltchiptool/util/ltim.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def get_gui_resource(self, name: str) -> Path:
return Path(__file__).parents[1] / "gui" / name

@staticmethod
@lru_cache
@lru_cache()
def get_version() -> Optional[str]:
return get_version()

Expand Down

0 comments on commit 1ae5f9f

Please sign in to comment.