Skip to content

Commit

Permalink
Fix some typos #515
Browse files Browse the repository at this point in the history
  • Loading branch information
srbdev committed Oct 19, 2015
1 parent 6f7a0ec commit 8287fb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/slycat/darray.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def _require_dimension_name(name):

def _require_dimension_type(type):
if type not in _require_dimension_type.allowed_types:
slycat.email.send_error("darray.py _require_dimension_type", "Dimension type must be one of %s" % ",",join(_require_dimension_type.allowed_types))
slycat.email.send_error("darray.py _require_dimension_type", "Dimension type must be one of %s" % ",".join(_require_dimension_type.allowed_types))
raise ValueError("Dimension type must be one of %s" % ",".join(_require_dimension_type.allowed_types))
return type
_require_dimension_type.allowed_types = set(["int64"])
Expand Down
2 changes: 1 addition & 1 deletion packages/slycat/web/server/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ def get_file(self, path, **kwargs):
try:
if stat.S_ISDIR(self._sftp.stat(path).st_mode):
cherrypy.response.headers["x-slycat-message"] = "Remote path %s:%s is a directory." % (self.hostname, path)
slycat.email.send_error("slycat.web.server.remote.py get_file", "cherrypy.HTTPError 400 can't read directory %s:%." % (self.hostname, path))
slycat.email.send_error("slycat.web.server.remote.py get_file", "cherrypy.HTTPError 400 can't read directory %s:%s." % (self.hostname, path))
raise cherrypy.HTTPError("400 Can't read directory.")

content_type, encoding = slycat.mime_type.guess_type(path)
Expand Down

0 comments on commit 8287fb9

Please sign in to comment.