Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/alkorgun/blacksmith-2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'BlackSmith.py')
-rw-r--r--BlackSmith.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/BlackSmith.py b/BlackSmith.py
index 46ed62a..1d7c45a 100644
--- a/BlackSmith.py
+++ b/BlackSmith.py
@@ -170,8 +170,8 @@ class SelfExc(Exception):
pass
def check_sqlite():
-
- assert itypes.sqlite3, "py-sqlite3 required"
+ if not itypes.sqlite3:
+ raise SelfExc("py-sqlite3 required")
def exc_info():
exc, err, tb = sys.exc_info()