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:
parent
f20311fa89
commit
959b96cf6e
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user