Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a60ce860
authored
Jul 22, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: handle store download errors
parent
f47134b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
circle/dashboard/views.py
+8
-2
No files found.
circle/dashboard/views.py
View file @
a60ce860
...
...
@@ -84,7 +84,7 @@ from storage.models import Disk
from
firewall.models
import
Vlan
,
Host
,
Rule
from
.models
import
Favourite
,
Profile
,
GroupProfile
,
FutureMember
from
.store_api
import
Store
from
.store_api
import
Store
,
NotOkException
logger
=
logging
.
getLogger
(
__name__
)
saml_available
=
hasattr
(
settings
,
"SAML_CONFIG"
)
...
...
@@ -3120,7 +3120,13 @@ class StoreList(LoginRequiredMixin, TemplateView):
@login_required
def
store_download
(
request
):
path
=
request
.
GET
.
get
(
"path"
)
url
=
Store
(
request
.
user
)
.
request_download
(
path
)
try
:
url
=
Store
(
request
.
user
)
.
request_download
(
path
)
except
NotOkException
:
messages
.
error
(
request
,
_
(
"Something went wrong during download."
))
logger
.
exception
(
"Unable to download, "
"maybe it is already deleted"
)
return
redirect
(
reverse
(
"dashboard.views.store-list"
))
return
redirect
(
url
)
...
...
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