Skip to content
Snippets Groups Projects
Commit 6be64418 authored by Alan Nelson's avatar Alan Nelson
Browse files

Catch the exception when no XML files are found to lint

parent c2a2966b
No related branches found
No related tags found
2 merge requests!15Merge Develop into Master,!9Magento2 xml fix
......@@ -17,7 +17,11 @@ def get_mappings(misc_file, base_dir):
return mapping
def get_xml_files(search_dir):
return check_output(['find', search_dir, '-name', '*.xml']).splitlines()
try:
return check_output(['find', search_dir, '-name', '*.xml']).splitlines()
except CalledProcessError:
print "WARNING: No XML files found"
return []
def lint_only(file):
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment