Github Mirror / telegraf-plugins: 978f79d7




Prevent an exception in early startup

Prevent an exception in early startup

Commit 978f79d7.

Authored 2022-05-14T12:24:48.000+01:00 by B Tasker in project Github Mirror / telegraf-plugins

+1 lines -0 lines

Commit Signature

Changes

diff --git a/tor-daemon/tor-daemon.py b/tor-daemon/tor-daemon.py
--- a/tor-daemon/tor-daemon.py
+++ b/tor-daemon/tor-daemon.py
# @@ -64,6 +64,7 @@ def get_guard_counts(s):
#
# if len(res) < 1 or not res[0].startswith("250+"):
# print("failed to get guard info")
# + return {}
# else:
# # Strip the response code and trailers
# counters = {
#