1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-02-20 20:09:07 +00:00

#392: Show only debug message if script isn't splitable

This commit is contained in:
nvbn 2015-10-29 01:03:27 +08:00
parent f20311fa89
commit 959b96cf6e

View File

@ -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