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
|
import sqlite3
|
||||||
from typing import get_type_hints
|
|
||||||
from tabulate import tabulate
|
from tabulate import tabulate
|
||||||
|
|
||||||
|
|
||||||
class SQL_Database:
|
class SQL_Database:
|
||||||
"""Main database class that controls all the functionality for input /
|
"""Main database class that controls all the functionality for input /
|
||||||
out of the database using SQLite3."""
|
out of the database using SQLite3."""
|
||||||
|
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.conn = None
|
self.conn = None
|
||||||
self.config_id = None
|
self.config_id = None
|
||||||
@ -311,7 +311,7 @@ class SQL_Database:
|
|||||||
|
|
||||||
@database_name.setter
|
@database_name.setter
|
||||||
def database_name(self, value_input):
|
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
|
@property
|
||||||
|
|||||||
Reference in New Issue
Block a user