Skip to content
Snippets Groups Projects
Verified Commit 508a84c7 authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

Better exception handling for Mattermost login

parent daff4e9e
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,11 @@ class MattermostCollector(object):
'scheme': o.scheme,
'port': mm_port
})
mat_api.login()
try:
mat_api.login()
except Exception as err:
print("Cannot login to {} : {}".format(instance, err))
continue
self.instances.append(
{
'conn': mat_api,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment