Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ckanext-odsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open-Data
ckanext-odsh
Commits
35411d34
Commit
35411d34
authored
6 years ago
by
anonymous
Browse files
Options
Downloads
Patches
Plain Diff
remove text exception
parent
95b70459
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ckanext/odsh/plugin.py
+2
-7
2 additions, 7 deletions
ckanext/odsh/plugin.py
with
2 additions
and
7 deletions
ckanext/odsh/plugin.py
+
2
−
7
View file @
35411d34
...
...
@@ -49,7 +49,7 @@ class OdshLogger(MultilineMessagesFormatter):
self
.
multiline_fmt
%
dict
(
record
.
__dict__
,
message
=
line
)
for
line
in
splitted
)
output
=
output
.
replace
(
'"'
,
'
\\
\\
"'
)
output
=
output
.
replace
(
'"'
,
'
\\
"'
)
output
+=
endl_marker
else
:
output
=
self
.
_fmt
%
record
.
__dict__
...
...
@@ -66,7 +66,7 @@ class OdshLogger(MultilineMessagesFormatter):
self
.
multiline_fmt
%
dict
(
record
.
__dict__
,
message
=
line
)
for
index
,
line
in
enumerate
(
record
.
exc_text
.
splitlines
())
)
output
=
output
.
replace
(
'"'
,
'
\\
\\
"'
)
output
=
output
.
replace
(
'"'
,
'
\\
"'
)
output
+=
endl_marker
except
UnicodeError
:
output
+=
'
\n
'
.
join
(
...
...
@@ -354,11 +354,6 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
# use several daterange queries agains temporal_start and temporal_end field
# TODO: use field of type date_range in solr index instead
def
before_search
(
self
,
search_params
):
try
:
raise
BaseException
(
'
boom
'
)
except
:
log
.
exception
(
"
got exception
"
)
extras
=
search_params
.
get
(
'
extras
'
)
if
not
extras
:
# There are no extras in the search params, so do nothing.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment