From 1e29bb4ad3b36bef238c156ffa46b7759fc2e190 Mon Sep 17 00:00:00 2001 From: toonn Date: Thu, 15 Jul 2021 20:45:57 +0200 Subject: actions.py: Another implicit return --- ranger/core/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ranger/core/actions.py b/ranger/core/actions.py index 945abcb6..417647db 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -1206,7 +1206,7 @@ class Actions( # pylint: disable=too-many-instance-attributes,too-many-public-m try: text = codecs.decode(data, encoding, error_scheme) except UnicodeDecodeError: - pass + return None else: LOG.debug("Guessed encoding of '%s' as %s", path, encoding) return text -- cgit 1.4.1-2-gfad0