Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE3
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
5
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0505e140
authored
Jun 04, 2023
by
carpoon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add some logging for the store
parent
71d6ccff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
circle/dashboard/views/store.py
+5
-5
No files found.
circle/dashboard/views/store.py
View file @
0505e140
...
...
@@ -71,19 +71,19 @@ class StoreList(LoginRequiredMixin, TemplateView):
try
:
if
self
.
request
.
is_ajax
():
context
=
self
.
get_context_data
(
**
kwargs
)
return
render_to_response
(
"dashboard/store/_list-box.html"
,
context
,
self
.
request
)
return
render
(
self
.
request
,
"dashboard/store/_list-box.html"
,
context
)
else
:
return
super
(
StoreList
,
self
)
.
get
(
*
args
,
**
kwargs
)
except
NoStoreException
:
messages
.
warning
(
self
.
request
,
_
(
"No store."
))
except
NotOkException
:
except
NotOkException
as
e
:
logger
.
error
(
"Store error:
%
s"
%
unicode
(
e
))
logger
.
exception
(
e
)
messages
.
warning
(
self
.
request
,
_
(
"Store has some problems now."
" Try again later."
))
except
Exception
as
e
:
logger
.
critical
(
"Something is wrong with store:
%
s"
,
unicode
(
e
))
logger
.
exception
(
e
)
messages
.
warning
(
self
.
request
,
_
(
"Unknown store error."
))
return
redirect
(
"/"
)
...
...
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