diff --git a/sqlmap.py b/sqlmap.py index 4a212bcf6..8926b3ead 100755 --- a/sqlmap.py +++ b/sqlmap.py @@ -130,7 +130,7 @@ def main(): kb.threadException = True # Reference: http://stackoverflow.com/questions/1635080/terminate-a-multi-thread-python-program - if conf.threads > 1: + if hasattr(conf, "threads") and conf.threads > 1: os._exit(0) if __name__ == "__main__":