mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 14:11:29 +00:00
Avoid handling BaseException, so SysExit and KeyboardInterrupt are propagated. #1834
This commit is contained in:
@@ -155,7 +155,7 @@ umitdb = ""
|
||||
|
||||
try:
|
||||
umitdb = Path.db
|
||||
except:
|
||||
except Exception:
|
||||
import os.path
|
||||
from BasePaths import base_paths
|
||||
|
||||
@@ -268,7 +268,7 @@ class UmitDB(object):
|
||||
|
||||
try:
|
||||
self.cursor.execute(drop_string)
|
||||
except:
|
||||
except Exception:
|
||||
connection.rollback()
|
||||
else:
|
||||
connection.commit()
|
||||
|
||||
Reference in New Issue
Block a user