mirror of
https://github.com/nmap/nmap.git
synced 2025-12-14 19:59:02 +00:00
Avoid handling BaseException, so SysExit and KeyboardInterrupt are propagated. #1834
This commit is contained in:
@@ -200,9 +200,9 @@ class Application(BWMainWindow):
|
||||
self.__parser = XMLReader(file)
|
||||
self.__parser.parse()
|
||||
|
||||
except:
|
||||
except Exception as e:
|
||||
|
||||
text = 'It is not possible open file: %s.' % file
|
||||
text = 'It is not possible open file %s: %s' % (file, e)
|
||||
|
||||
alert = BWAlertDialog(self,
|
||||
primary_text='Error opening file.',
|
||||
|
||||
Reference in New Issue
Block a user