Skip to content

Commit 742f9f1

Browse files
committed
fix
1 parent b78e50a commit 742f9f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

qiita_pet/handlers/analysis_handlers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,17 +170,17 @@ def post(self, analysis_id):
170170
'analysis/results/%d-delete' % analysis_id)
171171

172172
analysis = Analysis(analysis_id)
173+
analysis_name = analysis.name
173174
check_analysis_access(self.current_user, analysis)
174175

175176
try:
176177
Analysis.delete(analysis_id)
177178
msg = ("Analysis <b><i>%s</i></b> has been deleted." % (
178-
analysis.title))
179+
analysis_name))
179180
msg_level = "success"
180181
except Exception as e:
181-
print e
182182
msg = ("Couldn't remove <b><i>%s</i></b> analysis: %s" % (
183-
analysis.name, str(e)))
183+
analysis_name, str(e)))
184184
msg_level = "danger"
185185

186186
# redirecting to list of analysis but also passing messages and

0 commit comments

Comments
 (0)