src/eric7/eric7_doc.py

branch
eric7
changeset 9786
f94b530722af
parent 9740
90072e10ae9b
child 10296
2d3218cb56dc
equal deleted inserted replaced
9785:84684a40187d 9786:f94b530722af
436 except ImportError as v: 436 except ImportError as v:
437 sys.stderr.write("{0} error: {1}\n".format(file, v)) 437 sys.stderr.write("{0} error: {1}\n".format(file, v))
438 continue 438 continue
439 except Exception as ex: 439 except Exception as ex:
440 sys.stderr.write( 440 sys.stderr.write(
441 "{0} error while parsing: {1}\n".format( 441 "{0} error while parsing: {1}\n".format(file, str(ex))
442 file, str(ex)
443 )
444 ) 442 )
445 raise 443 raise
446 444
447 f = FileSystemUtilities.joinext( 445 f = FileSystemUtilities.joinext(
448 os.path.join(outputDir, moduleDocument.name()), ".html" 446 os.path.join(outputDir, moduleDocument.name()), ".html"
466 out.write(doc) 464 out.write(doc)
467 except OSError as v: 465 except OSError as v:
468 sys.stderr.write("{0} error: {1}\n".format(file, v[1])) 466 sys.stderr.write("{0} error: {1}\n".format(file, v[1]))
469 except Exception as ex: 467 except Exception as ex:
470 sys.stderr.write( 468 sys.stderr.write(
471 "{0} error while writing: {1}\n".format( 469 "{0} error while writing: {1}\n".format(file, str(ex))
472 file, str(ex)
473 )
474 ) 470 )
475 raise 471 raise
476 else: 472 else:
477 sys.stdout.write("{0} ok\n".format(f)) 473 sys.stdout.write("{0} ok\n".format(f))
478 474

eric ide

mercurial