UAVCAN: Move into lib directory

This commit is contained in:
Lorenz Meier
2014-12-23 14:34:53 +01:00
parent ba4b8c8e00
commit 84d744707d
5 changed files with 10 additions and 5 deletions
+6 -1
View File
@@ -26,5 +26,10 @@ class SourceScanner(object):
parser.Parse method.
"""
with codecs.open(path, 'r', 'utf-8') as f:
contents = f.read()
try:
contents = f.read()
except:
contents = ''
print('Failed reading file: %s, skipping content.' % path)
pass
parser.Parse(contents)