Skip to content

Commit

Permalink
make license_url optional
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Apr 26, 2012
1 parent 6c429da commit 382cb33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/model/license.py
Expand Up @@ -267,7 +267,7 @@ def load_licenses(self, license_url):
raise Exception, inst
self._create_license_list(license_data, license_url)

def _create_license_list(self, license_data, license_url):
def _create_license_list(self, license_data, license_url=''):
if isinstance(license_data, dict):
self.licenses = [License(entity) for entity in license_data.values()]
elif isinstance(license_data, list):
Expand Down

0 comments on commit 382cb33

Please sign in to comment.