提交 a55092e7 编写于 作者: N nicolargo

Getting an error when running with prometheus exporter #1469

上级 72704204
......@@ -19,7 +19,8 @@ Bugs corrected:
* 500 Internal Server Error /api/3/network/interface_name #1401
* Connection to MQTT server failed : getaddrinfo() argument 2 must be integer or string #1450
* `l` keypress (hide alert log) not working after some time #1449
* Too less data using prometheus exporter #1462
* Too less data using prometheus exporter #1462
* Getting an error when running with prometheus exporter #1469
Others:
......
......@@ -131,7 +131,8 @@ class Plugin(GlancesPlugin):
ret.append(self.curse_add_line(msg))
try:
msg_pub = '{}'.format(self.stats['public_address'])
except UnicodeEncodeError:
except (UnicodeEncodeError, KeyError):
# Add KeyError exception (see https://github.com/nicolargo/glances/issues/1469)
pass
else:
if self.stats['public_address'] is not None:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册