Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Odoo scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XCG
Odoo scripts
Commits
97a415b8440f
Commit
97a415b8440f
authored
2 years ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
odoo_scripts/docker_dev_start.py
+4
-2
4 additions, 2 deletions
odoo_scripts/docker_dev_start.py
with
4 additions
and
2 deletions
odoo_scripts/docker_dev_start.py
+
4
−
2
View file @
97a415b8
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment