summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2.py b/cmd2.py
index 4941580e..84d88b46 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -119,7 +119,7 @@ def remaining_args(oldArgs, newArgList):
matchObj = re.search(pattern, oldArgs)
try:
remaining = oldArgs[matchObj.start():]
- except:
+ except AttributeError:
# Don't preserve spacing, but at least we don't crash and we do preserve args and their order
remaining = ' '.join(newArgList)