Skip to content

Commit cc5f1e0

Browse files
committedMay 16, 2024··
Coerce all exceptions to strings
1 parent 7049d08 commit cc5f1e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎docopt_sh/__main__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import docopt
55
import logging
66
import termcolor
7-
from . import __doc__ as pkg_doc, __name__ as root_name, DocoptError, __version__
7+
from . import __doc__ as pkg_doc, __name__ as root_name, __version__
88
from .parser import ParserParameters, Parser, Library
99
from .script import Script
1010

@@ -75,7 +75,7 @@ def docopt_sh(params):
7575
log.info('The parser in %s is already up-to-date.', params['SCRIPT'])
7676
else:
7777
log.info('%s has been updated.', params['SCRIPT'])
78-
except DocoptError as e:
78+
except Exception as e:
7979
log.error(str(e))
8080
sys.exit(e.exit_code)
8181

0 commit comments

Comments
 (0)
Please sign in to comment.