Skip to content

Commit

Permalink
Merge pull request #12 from Som-Energia/FIX_get_secure_uri
Browse files Browse the repository at this point in the history
Get secure parameter connexion from uri
  • Loading branch information
MarJene committed Nov 15, 2022
2 parents c74905f + 3f8bd02 commit 679f2c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uiqmako_api/utils/erp.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ def get_erp_conn(cls):
def _connect_with_erp(self):

try:
self._uri = settings.erp_conn(self._name)['server']
self._erp_client = Client(
transport=PoolTransport(secure=False),
transport=PoolTransport(secure=self._uri.startswith('https')),
**settings.erp_conn(self._name)
)
self._uri = settings.erp_conn(self._name)['server']
except:
pass
#raise CantConnectERP("Unable to connect to {} ERP".format(self._name))
Expand Down

1 comment on commit 679f2c4

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests Skipped Failures Errors Time
100 6 💤 0 ❌ 0 🔥 1m 12s ⏱️

Please sign in to comment.