Skip to content

Commit

Permalink
print error in case of exception
Browse files Browse the repository at this point in the history
  • Loading branch information
wuan committed Dec 26, 2023
1 parent 260c177 commit 2aa9390
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion klimalogger/script/klimalogger.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ def main():
client.measure_and_store_periodically()
else:
client.measure_and_store()
except Exception:
except Exception as e:
print("Error", e)
return 10
return 0

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "klimalogger"
version = "0.7.8"
version = "0.7.9"
authors = [
{ name = "Andreas Würl", email = "[email protected]" },
]
Expand Down

0 comments on commit 2aa9390

Please sign in to comment.