added validation that current timer was found

This commit is contained in:
iLLiCiTiT 2019-08-13 17:43:34 +02:00
parent 1f1c4a1dd1
commit 160933e866

View file

@ -304,6 +304,9 @@ class ClockifyAPI(metaclass=Singleton):
if workspace_id is None:
workspace_id = self.workspace_id
current = self.get_in_progress(workspace_id)
if current is None:
return
current_id = current["id"]
action_url = 'workspaces/{}/timeEntries/{}'.format(
workspace_id, current_id