From 959b96cf6ec8cedda05dc58efe0e0f3bd6ed2f4e Mon Sep 17 00:00:00 2001 From: nvbn Date: Thu, 29 Oct 2015 01:03:27 +0800 Subject: [PATCH] #392: Show only debug message if script isn't splitable --- thefuck/types.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/thefuck/types.py b/thefuck/types.py index 442744c7..7abd1a6f 100644 --- a/thefuck/types.py +++ b/thefuck/types.py @@ -30,9 +30,9 @@ class Command(object): if not hasattr(self, '_script_parts'): try: self._script_parts = shells.split_command(self.script) - except Exception as e: - logs.exception("Can't split command script {}".format(self), - sys.exc_info()) + except Exception: + logs.debug("Can't split command script {} because:\n {}".format( + self, sys.exc_info())) self._script_parts = None return self._script_parts