mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
exit replaced by sys.exit to avoid crashes on cx_Freeze & py2exe (useful for Windows installer)
This commit is contained in:
parent
aee3f661f4
commit
c63eb85070
1 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import argparse
|
||||
import os
|
||||
import os, sys
|
||||
import time
|
||||
|
||||
from pelican.generators import (ArticlesGenerator, PagesGenerator,
|
||||
|
|
@ -157,7 +157,7 @@ def main():
|
|||
if (args.verbosity == log.DEBUG):
|
||||
raise
|
||||
else:
|
||||
exit(getattr(e, 'exitcode', 1))
|
||||
sys.exit(getattr(e, 'exitcode', 1))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue