Rev2048, Stop sending detailed exception as response to file request
This commit is contained in:
parent
e125895615
commit
14c906561d
2 changed files with 3 additions and 3 deletions
|
@ -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"
|
||||
|
|
|
@ -214,7 +214,7 @@ class FileRequest(object):
|
|||
|
||||
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
|
||||
|
@ -260,7 +260,7 @@ class FileRequest(object):
|
|||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue