Skip to content
Snippets Groups Projects
Commit 97a415b8440f authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:shirt: ignore new flake8 bugbear false positives

parent 08a077a0f957
No related branches found
No related tags found
1 merge request!161👕 ignore new flake8 bugbear false positives
......@@ -923,7 +923,8 @@
connection.autocommit = True
_logger.info("Creating database %s", database)
with connection.cursor() as cursor:
cursor.execute(f'CREATE DATABASE "{database}"')
# disable B028 as using !r would use single quote
cursor.execute(f'CREATE DATABASE "{database}"') # noqa: B028
connection.close()
if not start_postgresql and not odoo_help and restore_filename:
_logger.info("Restoring database %s", database)
......@@ -1036,7 +1037,8 @@
_logger.debug("Database role exists")
try:
_logger.info("Creating database %s", redner_database)
cursor.execute(f'CREATE DATABASE "{redner_database}"')
# disable B028 as using !r would use single quote
cursor.execute(f'CREATE DATABASE "{redner_database}"') # noqa: B028
_logger.info("Database created")
except DuplicateDatabase:
# ignore exception if the database already exists
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment