Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
allgo
allgo
Commits
d630d502
Commit
d630d502
authored
Dec 04, 2018
by
BAIRE Anthony
Browse files
avoid catching any exception
parent
325ef85a
Changes
1
Hide whitespace changes
Inline
Side-by-side
django/allgo/main/forms.py
View file @
d630d502
from
allauth.account.forms
import
SignupForm
from
django
import
forms
from
django.contrib.auth.models
import
User
from
django.core.exceptions
import
ObjectDoesNotExist
from
django.core.validators
import
RegexValidator
from
django.utils.safestring
import
mark_safe
...
...
@@ -164,7 +165,7 @@ class WebappForm(forms.ModelForm):
try
:
self
.
fields
[
'owner'
].
initial
=
self
.
instance
.
user
except
:
except
ObjectDoesNotExist
:
pass
self
.
instance
.
job_queue
=
JobQueue
.
objects
.
filter
(
...
...
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