*: misc formatting cleanup

This commit is contained in:
Jimmy Zelinskie 2016-10-17 15:21:11 -04:00 committed by Joseph Schorr
parent a42eb09a3e
commit 5fee4d6d19
2 changed files with 17 additions and 17 deletions

View file

@ -103,10 +103,10 @@ class BaseProvider(object):
def _get_license_file(self):
""" Returns the contents of the license file. """
try:
return self.get_volume_file(LICENSE_FILENAME)
return self.get_volume_file(LICENSE_FILENAME)
except IOError:
msg = 'Could not open license file. Please make sure it is in your config volume.'
raise LicenseError(msg)
msg = 'Could not open license file. Please make sure it is in your config volume.'
raise LicenseError(msg)
def validate_license(self, config):
""" Validates that the configuration matches the license file (if any). """