Skip to content

Commit

Permalink
Remove additional email commands
Browse files Browse the repository at this point in the history
  • Loading branch information
srbdev committed Nov 17, 2015
1 parent dcc7560 commit 55d58f8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/slycat/web/server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,11 +312,9 @@ def put_model_file(database, model, aid, value, content_type, input=False):
def get_model_file(database, model, aid):
artifact = model.get("artifact:%s" % aid, None)
if artifact is None:
slycat.email.send_error("slycat.web.server.__init__.py get_model_file", "cherrypy.HTTPError 404 artifact is None for aid: %s" % aid)
raise cherrypy.HTTPError(404)
artifact_type = model["artifact-types"][aid]
if artifact_type != "file":
slycat.email.send_error("slycat.web.server.__init__.py get_model_file", "cherrypy.HTTPError 404 %s is not a file artifact." % aid)
raise cherrypy.HTTPError("400 %s is not a file artifact." % aid)
fid = artifact
return database.get_attachment(model, fid)
Expand Down

0 comments on commit 55d58f8

Please sign in to comment.