Skip to content

Commit 224e432

Browse files
authored
handle CLI errors #442 (#644)
1 parent 1554a2d commit 224e432

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

xrspatial/__main__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ def main(args=None):
66
from . import _missing_cmd
77
print(_missing_cmd())
88
sys.exit(1)
9-
return pyct.cmd.substitute_main('xrspatial', args=args)
9+
try:
10+
return pyct.cmd.substitute_main('xrspatial', args=args)
11+
except Exception as e:
12+
print(e)
1013

1114

1215
if __name__ == "__main__":

0 commit comments

Comments
 (0)