From f50e72398176545caa5e76124fecb78162469f69 Mon Sep 17 00:00:00 2001 From: SimpleArt <71458112+SimpleArt@users.noreply.github.com> Date: Wed, 7 Jul 2021 21:21:44 -0400 Subject: [PATCH] Changed database_name setter error. Removed unnecessary import and shifted some of the spacing around as well. --- EasyGA/database/sql_database.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/EasyGA/database/sql_database.py b/EasyGA/database/sql_database.py index 6c1d39b..206d047 100644 --- a/EasyGA/database/sql_database.py +++ b/EasyGA/database/sql_database.py @@ -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