Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mentors.debian.net
debexpo
Commits
0f1b0052
Commit
0f1b0052
authored
Feb 13, 2012
by
Nicolas Dandrimont
🤔
Browse files
Add a traceback output when a plugin fails
parent
5afa8085
Changes
1
Hide whitespace changes
Inline
Side-by-side
debexpo/lib/plugins.py
View file @
0f1b0052
...
@@ -36,12 +36,14 @@ __author__ = 'Jonny Lamb'
...
@@ -36,12 +36,14 @@ __author__ = 'Jonny Lamb'
__copyright__
=
'Copyright © 2008 Jonny Lamb, Copyright © 2010 Jan Dittberner'
__copyright__
=
'Copyright © 2008 Jonny Lamb, Copyright © 2010 Jan Dittberner'
__license__
=
'MIT'
__license__
=
'MIT'
from
debian
import
deb822
import
logging
import
logging
import
os
import
os
import
tempfile
import
shutil
import
shutil
import
sys
import
sys
import
tempfile
import
traceback
from
debian
import
deb822
import
pylons
import
pylons
log
=
logging
.
getLogger
(
__name__
)
log
=
logging
.
getLogger
(
__name__
)
...
@@ -210,8 +212,8 @@ class Plugins(object):
...
@@ -210,8 +212,8 @@ class Plugins(object):
try
:
try
:
result
.
extend
(
p
.
run
())
result
.
extend
(
p
.
run
())
except
Exception
,
e
:
except
Exception
:
log
.
debug
(
"Something wrong happened while running the plugin '%s': %s"
%
(
plugin
,
e
))
log
.
debug
(
"Something wrong happened while running the plugin '%s': %s"
%
(
plugin
,
traceback
.
format_exc
()
))
if
self
.
conf
[
'extract'
]:
if
self
.
conf
[
'extract'
]:
self
.
_cleanup
()
self
.
_cleanup
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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