Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
fix issue with urllib3 import
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasCARPi committed Dec 9, 2022
1 parent 0c0393a commit f4dc5c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ Use `verify=False` in the Manager initialization to disable TLS certificate veri

## Dev stuff

### Install dependencies

`pipenv sync -d`

### Run mypy

`pipenv run python -m mypy elabapy`

### Create new release

* Update version in `setup.py` and `elabapy/__init__.py`
Expand Down
3 changes: 2 additions & 1 deletion elabapy/baseapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from urllib.parse import urljoin

import requests
import urllib3


class Error(Exception):
Expand Down Expand Up @@ -55,7 +56,7 @@ def send_req(
""" Send the request to the api endpoint. """
# don't show warnings if we chose to disable certificate verification
if self.verify == False:
requests.packages.urllib3.disable_warnings()
urllib3.disable_warnings()

# build url
url = urljoin(self.endpoint, url)
Expand Down

0 comments on commit f4dc5c6

Please sign in to comment.