Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Kunto
/
backoffice
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f08171f7
authored
Oct 08, 2019
by
aagusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
odeo-inq
1 parent
57c840d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
src/agratek/api/merchant/views/odeo/__init__.py
src/agratek/api/merchant/views/odeo/__init__.py
View file @
f08171f
...
...
@@ -52,13 +52,16 @@ class Vendor(VendorClass):
self
.
request
=
params
log
.
info
(
"Inquiry Request: url:
%
s params
%
s"
%
(
url
,
params
))
self
.
save_log
(
"inquiry"
)
try
:
resp
=
requests
.
get
(
url
,
params
=
params
,
verify
=
False
,
headers
=
self
.
get_headers
(),
timeout
=
timeout
)
except
:
headers
=
self
.
get_headers
())
except
Exception
as
e
:
log
.
info
(
e
)
return
if
not
resp
:
if
not
resp
.
text
:
log
.
info
(
"Resp Tidak Ada, {} {}"
.
format
(
resp
))
return
try
:
...
...
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