mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
some cleanup
This commit is contained in:
parent
bcfd574664
commit
ead50cca62
1 changed files with 2 additions and 3 deletions
|
|
@ -246,7 +246,7 @@ def parse_arguments():
|
||||||
|
|
||||||
parser.add_argument('-d', '--delete-output-directory',
|
parser.add_argument('-d', '--delete-output-directory',
|
||||||
dest='delete_outputdir',
|
dest='delete_outputdir',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
default=None,
|
default=None,
|
||||||
help='Delete the output directory.')
|
help='Delete the output directory.')
|
||||||
|
|
||||||
|
|
@ -357,7 +357,7 @@ def main():
|
||||||
|
|
||||||
if modified['theme'] is None:
|
if modified['theme'] is None:
|
||||||
logger.warning('Empty theme folder. Using `basic` theme.')
|
logger.warning('Empty theme folder. Using `basic` theme.')
|
||||||
|
|
||||||
pelican.run()
|
pelican.run()
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
|
@ -374,7 +374,6 @@ def main():
|
||||||
finally:
|
finally:
|
||||||
time.sleep(.5) # sleep to avoid cpu load
|
time.sleep(.5) # sleep to avoid cpu load
|
||||||
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
if next(watchers['content']) is None:
|
if next(watchers['content']) is None:
|
||||||
logger.warning('No valid files found in content.')
|
logger.warning('No valid files found in content.')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue