Changed database_name setter error.
Removed unnecessary import and shifted some of the spacing around as well.
This commit is contained in:
@ -1,12 +1,12 @@
|
||||
import sqlite3
|
||||
from typing import get_type_hints
|
||||
|
||||
from tabulate import tabulate
|
||||
|
||||
|
||||
class SQL_Database:
|
||||
"""Main database class that controls all the functionality for input /
|
||||
out of the database using SQLite3."""
|
||||
|
||||
|
||||
def __init__(self):
|
||||
self.conn = None
|
||||
self.config_id = None
|
||||
@ -311,7 +311,7 @@ class SQL_Database:
|
||||
|
||||
@database_name.setter
|
||||
def database_name(self, value_input):
|
||||
raise Exception("Invalid usage, please use ga.database_name instead.")
|
||||
raise AttributeError("Invalid usage, please use ga.database_name instead.")
|
||||
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user