Changed database_name setter error.

Removed unnecessary import and shifted some of the spacing around as well.
This commit is contained in:
SimpleArt
2021-07-07 21:21:44 -04:00
parent 33ac462522
commit f50e723981

View File

@ -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