Commit 991dc574 authored by Morten Brekkevold's avatar Morten Brekkevold

format tracebacks as code blocks in Slack output

parent ddd9282f
......@@ -145,6 +145,10 @@ class SlackFormatter(logging.Formatter):
return arg
def formatException(self, ei):
s = super(SlackFormatter, self).formatException(ei)
return "```\n{}\n```".format(s)
def _is_valid_ip(addr):
try:
......
......@@ -3,7 +3,7 @@ from setuptools import setup
setup(
name="kindnavsync",
version="0.2.7",
version="0.2.8",
author="Morten Brekkevold",
author_email="morten.brekkevold@uninett.no",
description="Synchronizes device information from Kind to NAV",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment