1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-04-14 06:40:49 +01: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'): if not hasattr(self, '_script_parts'):
try: try:
self._script_parts = shells.split_command(self.script) self._script_parts = shells.split_command(self.script)
except Exception as e: except Exception:
logs.exception("Can't split command script {}".format(self), logs.debug("Can't split command script {} because:\n {}".format(
sys.exc_info()) self, sys.exc_info()))
self._script_parts = None self._script_parts = None
return self._script_parts return self._script_parts