From 24c2de20b30b27eaadd7294a59f6ec1ad4f4623e Mon Sep 17 00:00:00 2001 From: Anna Date: Mon, 26 Mar 2018 23:41:22 +0300 Subject: [PATCH] upd --- rbmd.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/rbmd.py b/rbmd.py index 1e40c4c..661d464 100644 --- a/rbmd.py +++ b/rbmd.py @@ -108,7 +108,6 @@ class MountHandler(tornado.web.RequestHandler): if self.get_secure_cookie("user"): data = {k: v[0] for k, v in self.request.arguments.items()} res = action('mount', 'post', json.dumps(data)) - logging.info(res) self.write(res) @@ -181,10 +180,12 @@ def action(name, method, data=None): except: res = 'connection can\'t be established' elif method == 'post': - try: - res = requests.post(url, data).content - except: - res = 'connection can\'t be established' + res = requests.post(url, data).content + logging.info(res) + # try: + # res = requests.post(url, data).content + # except: + # res = 'connection can\'t be established' return res