Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
I
install.api
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Script
install.api
Commits
80f90e3b
Commit
80f90e3b
authored
Nov 16, 2020
by
jinkaiqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改报错
parent
eb0ecd7d
Pipeline
#29483
passed with stages
in 1 minute and 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
conncetion_service.py
app/conncetion/conncetion_service.py
+2
-1
No files found.
app/conncetion/conncetion_service.py
View file @
80f90e3b
# -*- coding:utf-8 -*-
# -*- coding:utf-8 -*-
from
_socket
import
timeout
from
_socket
import
timeout
from
huansi_utils.app.apploader
import
logger
from
huansi_utils.db.db
import
new_id
from
huansi_utils.db.db
import
new_id
from
huansi_utils.exception.exception
import
HSException
from
huansi_utils.exception.exception
import
HSException
from
sqlalchemy
import
create_engine
from
sqlalchemy
import
create_engine
...
@@ -159,7 +160,7 @@ values
...
@@ -159,7 +160,7 @@ values
if
not
error_message
:
if
not
error_message
:
error_message
=
str
(
e
)
error_message
=
str
(
e
)
print
(
"数据库连接失败,失败原因:{}"
.
format
(
error_message
))
logger
.
error
(
"数据库连接失败,失败原因:{}"
.
format
(
error_message
))
return
{
'message'
:
'连接失败'
}
return
{
'message'
:
'连接失败'
}
def
get_remote_server_info
(
self
):
def
get_remote_server_info
(
self
):
...
...
Write
Preview
Markdown
is supported
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