PYTHONUNBUFFERED=1 helped, but the main problem was not being able to connect to mariadb...

This commit is contained in:
Kikimanox
2022-08-29 16:42:27 +02:00
parent 1f2c9161fb
commit dd42b56c28
2 changed files with 4 additions and 13 deletions
+4 -7
View File
@@ -11,20 +11,17 @@ database_info = {
'password': config('MDB_PASSWORD')
}
print("connecting to mariadb")
cur = None
# Connect to MariaDB Platform
try:
conn = mariadb.connect(**database_info)
# Get cursor
cur = conn.cursor()
except mariadb.Error as e:
print(f"Error connecting to MariaDB Platform: {e}")
sys.exit(1)
# sys.exit(1)
print("connected to mariadb")
# Get Cursor
cur = conn.cursor()
# class BaseModel(Model):
# class Meta: