Commit 6d980f1e authored by karlicoss's avatar karlicoss Committed by GitHub

fix error logging during connection init (#723)

parent 17af82e7
...@@ -9,8 +9,8 @@ def Conn(database): ...@@ -9,8 +9,8 @@ def Conn(database):
if database: if database:
print("[+] Inserting into Database: " + str(database)) print("[+] Inserting into Database: " + str(database))
conn = init(database) conn = init(database)
if isinstance(conn, str): if isinstance(conn, str): # error
print(str) print(conn)
sys.exit(1) sys.exit(1)
else: else:
conn = "" conn = ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment