Skip to content

Commit

Permalink
Rev2048, Stop sending detailed exception as response to file request
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcutme committed Apr 13, 2017
1 parent e125895 commit 14c9065
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Config(object):

def __init__(self, argv):
self.version = "0.5.4"
self.rev = 2047
self.rev = 2048
self.argv = argv
self.action = None
self.config_file = "zeronet.conf"
Expand Down
4 changes: 2 additions & 2 deletions src/File/FileRequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def actionGetFile(self, params):

except Exception, err:
self.log.debug("GetFile read error: %s" % Debug.formatException(err))
self.response({"error": "File read error: %s" % Debug.formatException(err)})
self.response({"error": "File read error"})
return False

# New-style file streaming out of Msgpack context
Expand Down Expand Up @@ -260,7 +260,7 @@ def actionStreamFile(self, params):

except Exception, err:
self.log.debug("GetFile read error: %s" % Debug.formatException(err))
self.response({"error": "File read error: %s" % Debug.formatException(err)})
self.response({"error": "File read error"})
return False

# Peer exchange request
Expand Down

0 comments on commit 14c9065

Please sign in to comment.