Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
skos
Commits
e882f62c4c6a
Commit
4b287fdf
authored
Nov 28, 2017
by
Denis Laxalde
Browse files
Avoid "bare except" in views/__init__.py
Flake8 complains about that.
parent
0c7d15df6593
Changes
1
Hide whitespace changes
Inline
Side-by-side
views/__init__.py
View file @
e882f62c
...
...
@@ -352,7 +352,7 @@ class ImportSchemeConceptsView(ImportSchemeConceptsMixIn, EntityView):
kwargs
[
'delimiter'
]
=
CSV_DELIMITERS
[
kwargs
[
'delimiter'
]]
try
:
_handle_concepts_import
(
self
.
_cw
,
entity
,
kwargs
.
pop
(
'format'
),
**
kwargs
)
except
:
except
Exception
:
# for unclear reason we have to pop stream from form data, else
# it's stored in session's data while it's not pickleable,
# leading to silent error in set_cookie with pyramid.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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