mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-30 23:50:01 +00:00
Make wmlscope abort gracefully (without stack trace) on interrupt.
This commit is contained in:
parent
adee2bdf91
commit
11efcc99ec
@ -357,6 +357,7 @@ Usage: macroscope [options] dirpath
|
||||
directories are given, all files under the current directory are checked.
|
||||
""")
|
||||
|
||||
try:
|
||||
# Process options
|
||||
(options, arguments) = getopt.getopt(sys.argv[1:], "cCdhe:f:lr:t:uw:",
|
||||
[
|
||||
@ -474,5 +475,7 @@ Usage: macroscope [options] dirpath
|
||||
#xref.undersized()
|
||||
xref.unresdump()
|
||||
xref.duplicates(exportonly=True)
|
||||
except:
|
||||
print >>sys.stderr, "wmlscope: aborted."
|
||||
|
||||
# wmlscope ends here
|
||||
|
Loading…
x
Reference in New Issue
Block a user