Commit 321d8955 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

{models → License}.DoesNotExist

parent 552ff552
Pipeline #1535 passed with stages
in 1 minute and 3 seconds
......@@ -932,7 +932,7 @@ def update_github(forge, namespace, data):
if 'spdx_id' in repo_data['license'] and repo_data['license']['spdx_id']:
try:
license = License.objects.get(spdx_id=repo_data['license']['spdx_id'])
except models.DoesNotExist:
except License.DoesNotExist:
raise ValueError('No License with spdx_id=' + repo_data['license']['spdx_id'])
repo.license = license
if not project.license:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment