Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
U
unify_api2
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
chaonan
unify_api2
Commits
fa34ba33
Commit
fa34ba33
authored
Jun 04, 2024
by
ZZH
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix event msg 2024-06-04
parent
0a3474bb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
multi_lang.py
unify_api/modules/common/procedures/multi_lang.py
+10
-2
No files found.
unify_api/modules/common/procedures/multi_lang.py
View file @
fa34ba33
...
...
@@ -4,7 +4,9 @@ DATE:2024/5/30 11:34
"""
from
pot_libs.logger
import
log
from
unify_api.constants
import
E_TYPE_MSG_LANG
,
PHASE_LINE_LANG
,
E_TYPE_NAME_LANG
from
unify_api.constants
import
(
E_TYPE_MSG_LANG
,
PHASE_LINE_LANG
,
E_TYPE_NAME_LANG
)
def
load_event_msg
(
e_type
,
event_param
,
lang
):
...
...
@@ -15,7 +17,13 @@ def load_event_msg(e_type, event_param, lang):
if
not
msg_fmt
:
return
""
return
msg_fmt
.
format
(
**
event_param
)
event_msg
=
""
try
:
event_msg
=
msg_fmt
.
format
(
**
event_param
)
except
Exception
as
e
:
log
.
error
(
f
"load_event_msg e,fmt:{msg_fmt}, param:{event_param}, {e}"
)
finally
:
return
event_msg
def
load_phase_line
(
mtr_name
,
lang
):
...
...
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