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
9364b342
authored
Oct 08, 2019
by
Bálint Máhonfai
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix flake8 warnings
parent
ec28e1e2
Pipeline
#919
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
circle/dashboard/views/store.py
+7
-1
No files found.
circle/dashboard/views/store.py
View file @
9364b342
...
@@ -35,7 +35,8 @@ from django.views.generic import TemplateView
...
@@ -35,7 +35,8 @@ from django.views.generic import TemplateView
from
braces.views
import
LoginRequiredMixin
from
braces.views
import
LoginRequiredMixin
from
..store_api
import
Store
,
NoStoreException
,
NotOkException
from
..store_api
import
(
Store
,
NoStoreException
,
NotOkException
,
NoOrgIdException
)
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
...
@@ -70,6 +71,11 @@ class StoreList(LoginRequiredMixin, TemplateView):
...
@@ -70,6 +71,11 @@ 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."
))
except
NoOrgIdException
:
messages
.
warning
(
self
.
request
,
_
(
"Your organization ID is not set."
" To use the store, you need a"
" unique organization ID."
))
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."
))
...
...
Máhonfai Bálint
@balint355
mentioned in commit
889845e1
Oct 08, 2019
mentioned in commit
889845e1
mentioned in commit 889845e1db731a0f8960f4290761c223dfa2c2a3
Toggle commit list
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