Raise NoSectionError(section) from None configparser.NoSectionError: No section: 'mysql'

  File "database.py", line 276, in <module>
    scan.hacktheplanet()
  File "database.py", line 127, in hacktheplanet
    result['result'] = c.do_check(self.config)
  File "/home/thor/Downloads/database/plugins/mysql/check_configuration_general_log.py", line 32, in do_check
    general_log_file = configuration.getboolean('mysql', 'general_log_file')
  File "/usr/lib/python3.8/configparser.py", line 828, in getboolean
    return self._get_conv(section, option, self._convert_to_boolean,
  File "/usr/lib/python3.8/configparser.py", line 808, in _get_conv
    return self._get(section, conv, option, raw=raw, vars=vars,
  File "/usr/lib/python3.8/configparser.py", line 803, in _get
    return conv(self.get(section, option, **kwargs))
  File "/usr/lib/python3.8/configparser.py", line 781, in get
    d = self._unify_values(section, vars)
  File "/usr/lib/python3.8/configparser.py", line 1149, in _unify_values
    raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'mysql'

I have create database.conf file

[mysql]
database_type               = mysql
server                      = localhost
port                        = 3306
database                    = test
privileged_account          = rohan
privileged_account_password = root
application_account         = apprunuser
configuration_file          = /etc/mysql/mysql.cnf
pid-file = /tmp/spam.pid
show_warnings = False
log_errors = true
general_log_file = true

Here also share my code please check
https://dpaste.org/7CZmf

Suggest you wrote a small piece of code that shows the error and post here if you do not figure out the issue.

here is the small piece of code . Please check dpaste/7CZmf (Python). and also created the database.conf file which is share above .

Post here please. The link makes quoting hard and many people refuse to follow links.