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
226520e5
authored
Sep 23, 2014
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: raise Http404 instead of SuspiciousOperation in GraphViewBase
parent
26742917
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
circle/dashboard/views/graph.py
+2
-2
No files found.
circle/dashboard/views/graph.py
View file @
226520e5
...
@@ -21,7 +21,7 @@ import logging
...
@@ -21,7 +21,7 @@ import logging
import
requests
import
requests
from
django.conf
import
settings
from
django.conf
import
settings
from
django.core.exceptions
import
PermissionDenied
,
SuspiciousOperation
from
django.core.exceptions
import
PermissionDenied
from
django.http
import
HttpResponse
,
Http404
from
django.http
import
HttpResponse
,
Http404
from
django.utils.translation
import
ugettext_lazy
as
_
from
django.utils.translation
import
ugettext_lazy
as
_
from
django.views.generic
import
View
from
django.views.generic
import
View
...
@@ -52,7 +52,7 @@ class GraphViewBase(LoginRequiredMixin, View):
...
@@ -52,7 +52,7 @@ class GraphViewBase(LoginRequiredMixin, View):
try
:
try
:
metric
=
self
.
metrics
[
metric
]
metric
=
self
.
metrics
[
metric
]
except
KeyError
:
except
KeyError
:
raise
SuspiciousOperation
()
raise
Http404
()
try
:
try
:
instance
=
self
.
get_object
(
request
,
pk
)
instance
=
self
.
get_object
(
request
,
pk
)
...
...
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