1
0
Fork 0
forked from github/pelican

Print errors if errors occurs :) Force to have a path specified.

This commit is contained in:
Alexis Metaireau 2010-08-19 14:48:58 +02:00
commit 4bff6ebeeb
3 changed files with 8 additions and 3 deletions

View file

@ -22,6 +22,9 @@ parser.add_argument('-s', '--settings', dest='settings',
if __name__ == '__main__':
args = parser.parse_args()
files = []
generate_output(args.path, args.templates, args.output, args.markup,
try:
generate_output(args.path, args.templates, args.output, args.markup,
args.settings)
print 'Done !'
print 'Done !'
except Exception, e:
print 'Error ! %s' % e