mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Tracebacks are shown in debug mode
This commit is contained in:
parent
d877150df1
commit
73d9ab4763
1 changed files with 4 additions and 1 deletions
|
|
@ -154,7 +154,10 @@ def main():
|
|||
except Exception, e:
|
||||
log.critical(unicode(e))
|
||||
|
||||
exit(getattr(e, 'exitcode', 1))
|
||||
if (args.verbosity == log.DEBUG):
|
||||
raise
|
||||
else:
|
||||
exit(getattr(e, 'exitcode', 1))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue