Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
dashboard
Commits
321d8955
Commit
321d8955
authored
Oct 02, 2018
by
Guilhem Saurel
Browse files
{models → License}.DoesNotExist
parent
552ff552
Pipeline
#1535
passed with stages
in 1 minute and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/models.py
View file @
321d8955
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment