Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
verktoy
kindnavsync
Commits
991dc574
Commit
991dc574
authored
Jun 26, 2018
by
Morten Brekkevold
Browse files
format tracebacks as code blocks in Slack output
parent
ddd9282f
Changes
2
Hide whitespace changes
Inline
Side-by-side
bin/kindnavsync
View file @
991dc574
...
...
@@ -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
:
...
...
setup.py
View file @
991dc574
...
...
@@ -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"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment