~gesha/linaro-license-protection/remove-fallback

« back to all changes in this revision

Viewing changes to license_protected_downloads/render_text_files.py

  • Committer: Georgy Redkozubov
  • Date: 2012-10-24 16:08:44 UTC
  • Revision ID: georgy.redkozubov@linaro.org-20121024160844-1uwyj71nejjsi9oq
Added exception explanation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
        ubuntupaths = cls.dirEntries(path, files_list=settings.LINUX_FILES)
65
65
        if len(androidpaths) > 0 and len(ubuntupaths) > 0:
66
66
            # Files from ANDROID_FILES and LINUX_FILES exist in the same dir
67
 
            raise MultipleFilesException
 
67
            raise MultipleFilesException("Both Android and Ubuntu HOWTO " \
 
68
             "files are found, which is unsupported.")
68
69
        else:
69
70
            if len(androidpaths) > 0:
70
71
                return androidpaths