summaryrefslogtreecommitdiffstats
path: root/tools/licenses.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/licenses.py')
-rwxr-xr-xtools/licenses.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/licenses.py b/tools/licenses.py
index ff548a3..7040c5b 100755
--- a/tools/licenses.py
+++ b/tools/licenses.py
@@ -199,7 +199,12 @@ def GenerateCredits():
'rb').read()
entries = []
for path in sorted(third_party_dirs):
- metadata = ParseDir(path)
+ try:
+ metadata = ParseDir(path)
+ except LicenseError:
+ print >>sys.stderr, ("WARNING: licensing info for " + path +
+ " is incomplete, skipping.")
+ continue
env = {
'name': metadata['Name'],
'url': metadata['URL'],
@@ -209,6 +214,7 @@ def GenerateCredits():
file_template = open('chrome/browser/resources/about_credits.tmpl',
'rb').read()
+ print "<!-- Generated by licenses.py; do not edit. -->"
print EvaluateTemplate(file_template, {'entries': '\n'.join(entries)},
escape=False)