Check for empty string just before 'find_errors'
Our (legacy) contract is that we do NOT call 'find_errors' with ''. But
we will call the new `parse_output` in any case. (E.g. the user can
inspect the returncode.)
@@ -720,9 +720,6 @@ class Linter(metaclass=LinterMeta):
except TransientError:
return None # ABORT
- if not output:
- return []
-
if view_has_changed():
return None # ABORT
@@ -748,6 +745,9 @@ class Linter(metaclass=LinterMeta):
else:
output = proc.combined_output
+ if not output:
+ return []
+
if logger.isEnabledFor(logging.INFO):
import textwrap
logger.info('{} output:\n{}'.format(
