Skip to content
Snippets Groups Projects

:shirt: flake8

Merged Vincent Hatakeyama requested to merge topic/default/fix-flake8 into branch/default
1 file
+ 2
4
Compare changes
  • Side-by-side
  • Inline
@@ -923,8 +923,7 @@ def main(argv=None): # IGNORE:C0111
connection.autocommit = True
_logger.info("Creating database %s", database)
with connection.cursor() as cursor:
# disable B028 as using !r would use single quote
cursor.execute(f'CREATE DATABASE "{database}"') # noqa: B028
cursor.execute(f'CREATE DATABASE "{database}"')
connection.close()
if not start_postgresql and not odoo_help and restore_filename:
_logger.info("Restoring database %s", database)
@@ -1037,8 +1036,7 @@ def main(argv=None): # IGNORE:C0111
_logger.debug("Database role exists")
try:
_logger.info("Creating database %s", redner_database)
# disable B028 as using !r would use single quote
cursor.execute(f'CREATE DATABASE "{redner_database}"') # noqa: B028
cursor.execute(f'CREATE DATABASE "{redner_database}"')
_logger.info("Database created")
except DuplicateDatabase:
# ignore exception if the database already exists
Loading