Skip to content

Commit

Permalink
Closes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Alwinator committed May 10, 2021
1 parent 3e34589 commit c74edb5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions aw_watcher_table/watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ def heartbeat_loop(self):
while True:
try:
table_height = self.get_table_height()
if table_height is None:
logger.warning(
f'aw-watcher-table: table_height corrected from None to -1!')
table_height = -1
self.ping(table_height)
sleep(self.settings.poll_time)
except KeyboardInterrupt:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ documentation = "https://git.alwinschuster.at/alwin.schuster/activity-watcher-he
aw-watcher-table = "aw_watcher_table:main"

[tool.poetry.dependencies]
python = "^3.6"
python = "^3.7"
requests = "^2.24.0"
aw-core = {git = "https://github.com/ActivityWatch/aw-core.git"}
aw-client = {git = "https://github.com/ActivityWatch/aw-client.git"}
Expand Down

0 comments on commit c74edb5

Please sign in to comment.