diff options
Diffstat (limited to 'fshare.py')
-rwxr-xr-x | fshare.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |