File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 13
13
import json
14
14
from pathlib import Path
15
15
import sys
16
+ import warnings
16
17
17
18
18
19
def validate_extension_bundles ():
19
- """Throw an exception if host.json contains bundle-range V1.
20
+ """Raise a warning if host.json contains bundle-range V1.
20
21
21
- Raises
22
+ Effects
22
23
------
23
- Exception: Exception prompting the user to update to bundles V2
24
+ Warning: Warning prompting the user to update to bundles V2
24
25
"""
25
26
# No need to validate if we're running tests
26
27
if "pytest" in sys .modules :
@@ -46,10 +47,13 @@ def validate_extension_bundles():
46
47
# We do a best-effort attempt to detect bundles V1
47
48
# This is the string hard-coded into the bundles V1 template in VSCode
48
49
if version_range == "[1.*, 2.0.0)" :
49
- message = "Durable Functions for Python does not support Bundles V1." \
50
+ message = "Your application is currently configured to use Extension Bundles V1." \
51
+ " Durable Functions for Python works best with Bundles V2," \
52
+ " which provides additional features like Durable Entities, better performance," \
53
+ " and is actively being developed." \
50
54
" Please update to Bundles V2 in your `host.json`." \
51
55
" You can set extensionBundles version to be: [2.*, 3.0.0)"
52
- raise Exception (message )
56
+ warnings . warn (message )
53
57
54
58
55
59
# Validate that users are not in extension bundles V1
You can’t perform that action at this time.
0 commit comments