Skip to content

Commit ea9b93d

Browse files
committed
remove import try/catch
1 parent 944d8cd commit ea9b93d

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

.github/workflows/ci_consumption_workflow.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
python-version: ${{ matrix.python-version }}
3333
- name: Install dependencies
3434
run: |
35-
python -m pip install --upgrade pip==23.0
35+
python -m pip install --upgrade pip
3636
python -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple -U azure-functions --pre
3737
python -m pip install -U -e .[dev]
3838
python setup.py build

.github/workflows/ci_e2e_workflow.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
done
5959
}
6060
61-
python -m pip install --upgrade pip==23.0
61+
python -m pip install --upgrade pip
6262
python -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple -U azure-functions --pre
6363
python -m pip install -U -e .[dev]
6464
if [[ "${{ matrix.python-version }}" != "3.7" && "${{ matrix.python-version }}" != "3.8" ]]; then

.github/workflows/ci_ut_workflow.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
done
5757
}
5858
59-
python -m pip install --upgrade pip==23.0
59+
python -m pip install --upgrade pip
6060
python -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple -U azure-functions --pre
6161
python -m pip install -U -e .[dev]
6262

azure_functions_worker/bindings/meta.py

+3-8
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,9 @@ def load_binding_registry() -> None:
4444
# The base extension supports python 3.8+
4545
if sys.version_info.minor >= BASE_EXT_SUPPORTED_PY_MINOR_VERSION:
4646
# Import the base extension
47-
try:
48-
import azurefunctions.extensions.base as clients
49-
global DEFERRED_BINDING_REGISTRY
50-
DEFERRED_BINDING_REGISTRY = clients.get_binding_registry()
51-
except ImportError:
52-
# This means that the customer hasn't imported the library.
53-
# This isn't an error.
54-
pass
47+
import azurefunctions.extensions.base as clients
48+
global DEFERRED_BINDING_REGISTRY
49+
DEFERRED_BINDING_REGISTRY = clients.get_binding_registry()
5550

5651

5752
def get_binding(bind_name: str,

0 commit comments

Comments
 (0)