Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
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
9183c066
authored
Aug 04, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: fix store timeout error
parent
212e0a80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
circle/dashboard/views.py
+4
-2
No files found.
circle/dashboard/views.py
View file @
9183c066
...
@@ -3183,11 +3183,13 @@ class StoreList(LoginRequiredMixin, TemplateView):
...
@@ -3183,11 +3183,13 @@ class StoreList(LoginRequiredMixin, TemplateView):
return
super
(
StoreList
,
self
)
.
get
(
*
args
,
**
kwargs
)
return
super
(
StoreList
,
self
)
.
get
(
*
args
,
**
kwargs
)
except
NoStoreException
:
except
NoStoreException
:
messages
.
warning
(
self
.
request
,
_
(
"No store."
))
messages
.
warning
(
self
.
request
,
_
(
"No store."
))
return
redirect
(
"/"
)
except
NotOkException
:
except
NotOkException
:
messages
.
warning
(
self
.
request
,
_
(
"Store has some problems now."
messages
.
warning
(
self
.
request
,
_
(
"Store has some problems now."
" Try again later."
))
" Try again later."
))
return
redirect
(
"/"
)
except
Exception
as
e
:
logger
.
critical
(
"Something is wrong with store:
%
s"
,
unicode
(
e
))
messages
.
warning
(
self
.
request
,
_
(
"Unknown store error."
))
return
redirect
(
"/"
)
def
create_up_directory
(
self
,
directory
):
def
create_up_directory
(
self
,
directory
):
path
=
normpath
(
join
(
'/'
,
directory
,
'..'
))
path
=
normpath
(
join
(
'/'
,
directory
,
'..'
))
...
...
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