Skip to content

Commit 8e382ca

Browse files
schoentoonatx
authored andcommitted
The get_connections() call can also throw an IOError
As listed in the documentation of get_connections() here it can also throw an IOError
1 parent 62573b8 commit 8e382ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prometheus-tor-exporter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def collect(self):
110110
yield GaugeMetricFamily("tor_uptime",
111111
"Tor daemon uptime",
112112
value=uptime)
113-
except OSError:
113+
except (OSError, IOError):
114114
# This happens if the PID does not exists (on another machine).
115115
pass
116116
try:

0 commit comments

Comments
 (0)