We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b78e50a commit 742f9f1Copy full SHA for 742f9f1
qiita_pet/handlers/analysis_handlers.py
@@ -170,17 +170,17 @@ def post(self, analysis_id):
170
'analysis/results/%d-delete' % analysis_id)
171
172
analysis = Analysis(analysis_id)
173
+ analysis_name = analysis.name
174
check_analysis_access(self.current_user, analysis)
175
176
try:
177
Analysis.delete(analysis_id)
178
msg = ("Analysis <b><i>%s</i></b> has been deleted." % (
- analysis.title))
179
+ analysis_name))
180
msg_level = "success"
181
except Exception as e:
- print e
182
msg = ("Couldn't remove <b><i>%s</i></b> analysis: %s" % (
183
- analysis.name, str(e)))
+ analysis_name, str(e)))
184
msg_level = "danger"
185
186
# redirecting to list of analysis but also passing messages and
0 commit comments