waybar: wakatime module - add handling for no data case
This commit is contained in:
parent
4c03c33783
commit
352d29ac34
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ def main():
|
||||||
tooltip = generate_tooltip(
|
tooltip = generate_tooltip(
|
||||||
human_time, format_metric(langs), format_metric(projects)
|
human_time, format_metric(langs), format_metric(projects)
|
||||||
)
|
)
|
||||||
output["text"] = digital_time
|
output["text"] = digital_time or "No data"
|
||||||
output["tooltip"] = tooltip
|
output["tooltip"] = tooltip
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Add table
Reference in a new issue