diff --git a/mytoninstaller/settings.py b/mytoninstaller/settings.py index 6288f6c8..b760a361 100644 --- a/mytoninstaller/settings.py +++ b/mytoninstaller/settings.py @@ -224,7 +224,7 @@ def download_archive_from_ts(local): block_bags = [] master_block_bags = [] - blocks_config = requests.get(url).json() + blocks_config = requests.get(url, timeout=3).json() for state in blocks_config['states']: if state['at_block'] > block_from: break diff --git a/scripts/install.py b/scripts/install.py index 81f4e41c..a7b31b4e 100644 --- a/scripts/install.py +++ b/scripts/install.py @@ -120,7 +120,8 @@ def run_cli(): if mode == "liteserver": archive_blocks = questionary.text( "Do you want to download archive blocks via TON Storage? Press Enter to skip.\n" - "If yes, provide block seqno or date to start from and (optionally) block seqno or date to end with (send `1` to download all blocks and setup full archive node).\n" + "If yes, provide block seqno or date to start from and (optionally) block seqno or date to end with\n" + "(send `1` to download all blocks and setup full archive node).\n" "Examples: `30850000`, `10000000 10200000`, `2025-01-01`, `2025-01-01 2025-01-30`", validate=validate_archive_blocks ).unsafe_ask() diff --git a/scripts/install.sh b/scripts/install.sh index abd5af18..fce8a8fb 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -95,7 +95,7 @@ if [ "${mode}" = "none" ] && [ "$backup" = "none" ]; then # no mode or backup w echo "pip not found. Installing pip..." python3 -m pip install --upgrade pip fi - pip3 install questionary==2.1.0 --break-system-packages + pip3 install questionary==2.1.1 --break-system-packages python3 install.py "$@" pip3 uninstall questionary -y exit