remove unused variables
This commit is contained in:
		| @@ -49,7 +49,7 @@ class ApplicationGetMixin: | ||||
|         value = "attachement" | ||||
|         try: | ||||
|             encoded_filename = quote(filename, encoding=self.encoding) | ||||
|         except UnicodeEncodeError as e: | ||||
|         except UnicodeEncodeError: | ||||
|             logger.warning("Failed to encode filename: %r", filename, | ||||
|                            exc_info=True) | ||||
|             encoded_filename = "" | ||||
|   | ||||
| @@ -39,7 +39,7 @@ class ApplicationMkcalendarMixin: | ||||
|             logger.warning( | ||||
|                 "Bad MKCALENDAR request on %r: %s", path, e, exc_info=True) | ||||
|             return httputils.BAD_REQUEST | ||||
|         except socket.timeout as e: | ||||
|         except socket.timeout: | ||||
|             logger.debug("client timed out", exc_info=True) | ||||
|             return httputils.REQUEST_TIMEOUT | ||||
|         # Prepare before locking | ||||
|   | ||||
| @@ -40,7 +40,7 @@ class ApplicationMkcolMixin: | ||||
|             logger.warning( | ||||
|                 "Bad MKCOL request on %r: %s", path, e, exc_info=True) | ||||
|             return httputils.BAD_REQUEST | ||||
|         except socket.timeout as e: | ||||
|         except socket.timeout: | ||||
|             logger.debug("client timed out", exc_info=True) | ||||
|             return httputils.REQUEST_TIMEOUT | ||||
|         # Prepare before locking | ||||
|   | ||||
| @@ -366,7 +366,7 @@ class ApplicationPropfindMixin: | ||||
|             logger.warning( | ||||
|                 "Bad PROPFIND request on %r: %s", path, e, exc_info=True) | ||||
|             return httputils.BAD_REQUEST | ||||
|         except socket.timeout as e: | ||||
|         except socket.timeout: | ||||
|             logger.debug("client timed out", exc_info=True) | ||||
|             return httputils.REQUEST_TIMEOUT | ||||
|         with self.Collection.acquire_lock("r", user): | ||||
|   | ||||
| @@ -95,7 +95,7 @@ class ApplicationProppatchMixin: | ||||
|             logger.warning( | ||||
|                 "Bad PROPPATCH request on %r: %s", path, e, exc_info=True) | ||||
|             return httputils.BAD_REQUEST | ||||
|         except socket.timeout as e: | ||||
|         except socket.timeout: | ||||
|             logger.debug("client timed out", exc_info=True) | ||||
|             return httputils.REQUEST_TIMEOUT | ||||
|         with self.Collection.acquire_lock("w", user): | ||||
|   | ||||
| @@ -42,7 +42,7 @@ class ApplicationPutMixin: | ||||
|         except RuntimeError as e: | ||||
|             logger.warning("Bad PUT request on %r: %s", path, e, exc_info=True) | ||||
|             return httputils.BAD_REQUEST | ||||
|         except socket.timeout as e: | ||||
|         except socket.timeout: | ||||
|             logger.debug("client timed out", exc_info=True) | ||||
|             return httputils.REQUEST_TIMEOUT | ||||
|         # Prepare before locking | ||||
|   | ||||
| @@ -267,7 +267,7 @@ class ApplicationReportMixin: | ||||
|             logger.warning( | ||||
|                 "Bad REPORT request on %r: %s", path, e, exc_info=True) | ||||
|             return httputils.BAD_REQUEST | ||||
|         except socket.timeout as e: | ||||
|         except socket.timeout: | ||||
|             logger.debug("client timed out", exc_info=True) | ||||
|             return httputils.REQUEST_TIMEOUT | ||||
|         with contextlib.ExitStack() as lock_stack: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Unrud
					Unrud