Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Taufik Yulianto
/
esipkd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4042aa42
authored
Oct 27, 2023
by
taufikyu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
tambahkan didalam try except
1 parent
b3001284
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
esipkd/models/bjb_qris.py
esipkd/models/bjb_va.py
esipkd/models/bjb_qris.py
View file @
4042aa4
...
@@ -147,8 +147,11 @@ class BJBQRIS(KodeModel, Base):
...
@@ -147,8 +147,11 @@ class BJBQRIS(KodeModel, Base):
datava
=
send_rpc
(
parameter
,
'create'
,
data
)
datava
=
send_rpc
(
parameter
,
'create'
,
data
)
if
not
datava
:
if
not
datava
:
return
False
return
False
if
'error'
in
datava
:
try
:
return
datava
if
'error'
in
datava
:
return
datava
except
:
pass
saved
=
cls
.
save
(
datava
)
saved
=
cls
.
save
(
datava
)
return
saved
return
saved
...
...
esipkd/models/bjb_va.py
View file @
4042aa4
...
@@ -134,8 +134,11 @@ class BJBVA(KodeModel, Base):
...
@@ -134,8 +134,11 @@ class BJBVA(KodeModel, Base):
datava
=
send_rpc
(
parameter
,
'create'
,
data
)
datava
=
send_rpc
(
parameter
,
'create'
,
data
)
if
not
datava
:
if
not
datava
:
return
False
return
False
if
'error'
in
datava
:
try
:
return
datava
if
'error'
in
datava
:
return
datava
except
:
pass
saved
=
cls
.
save
(
datava
)
saved
=
cls
.
save
(
datava
)
return
saved
return
saved
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment