Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sciReptor
AIRR CEF Toolbox
Commits
427a7c4b
Commit
427a7c4b
authored
Sep 01, 2021
by
Francisco Arcila Salamanca
Browse files
uncomment raise statement for db duplicate
parent
e4c10062
Changes
1
Hide whitespace changes
Inline
Side-by-side
scirexport/importools.py
View file @
427a7c4b
...
...
@@ -23,7 +23,7 @@ def safe_create_schema(db: MySQLcon, project_name: str) -> None:
db
.
close
()
logger
.
error
(
f
"
{
project_name
}
is already in the database"
)
db
.
close
()
#
raise NameError(f"Database `{project_name}` already exists")
raise
NameError
(
f
"Database `
{
project_name
}
` already exists"
)
else
:
# Create database scheme
c
.
execute
(
f
"CREATE SCHEMA IF NOT EXISTS
{
project_name
}
;"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment