aboutsummaryrefslogtreecommitdiff
path: root/fshare.py
diff options
context:
space:
mode:
Diffstat (limited to 'fshare.py')
-rwxr-xr-xfshare.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/fshare.py b/fshare.py
index 61d9dcd..ec94b2b 100755
--- a/fshare.py
+++ b/fshare.py
@@ -482,12 +482,12 @@ class FShareRequestHandler(hs.BaseHTTPRequestHandler):
fname = self._process_path(self.path)
- path = '/'.join((self.server.data_dir, fname))
+ local_path = '/'.join((self.server.data_dir, fname))
try:
- os.remove(targetpath)
+ os.remove(local_path)
except FileNotFoundError:
- self._logger.error('DELETE request for non-existing file: %s' %
- local_path.decode('utf-8', errors = 'backslashreplace'))
+ self._logger.error('DELETE request for non-existing file: %s',
+ local_path)
self.send_error(HTTPStatus.NOT_FOUND)
return