Skip to content

Commit 05ab4c3

Browse files
update __init__ file
1 parent d7f0477 commit 05ab4c3

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

abarorm/__init__.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
1+
"""
2+
Abarorm Package Initialization
3+
4+
This file imports the necessary database models to be exposed publicly.
5+
The following models are available:
6+
- SQLiteModel
7+
- PostgreSQLModel
8+
"""
9+
110
__all__ = [
211
'SQLiteModel',
312
'PostgreSQLModel'
413
]
514

6-
from .sqlite import SQLiteModel
7-
from .psql import PostgreSQLModel
15+
try:
16+
from .sqlite import SQLiteModel
17+
from .psql import PostgreSQLModel
18+
except ImportError as e:
19+
raise ImportError(f"Error importing module: {e}")

0 commit comments

Comments
 (0)