Rev2048, Stop sending detailed exception as response to file request

This commit is contained in:
shortcutme 2017-04-14 00:26:20 +02:00
parent e125895615
commit 14c906561d
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 3 additions and 3 deletions

View file

@ -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"

View file

@ -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