mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Pelican exits 1 or Exception.exitcode if an exception is raised
This commit is contained in:
parent
da84603558
commit
87c22dc7ac
1 changed files with 2 additions and 0 deletions
|
|
@ -154,6 +154,8 @@ def main():
|
|||
except Exception, e:
|
||||
log.critical(unicode(e))
|
||||
|
||||
exit(getattr(e, 'exitcode', 1))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue