Skip to content

Commit

Permalink
Merge pull request #23 from turlucode/develop
Browse files Browse the repository at this point in the history
Version 3.0.2
  • Loading branch information
turlucode authored Jul 14, 2024
2 parents 146c682 + de81054 commit f901845
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.0.2] - 2024-07-14

### Fixed
- Suppress "InsecureRequestWarning: Unverified HTTPS request is being made to host 'apt.llvm.org'", when using `verify=False` in `requests.get()`.

## [3.0.1] - 2024-07-12

### Changed
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "turludock"
version = "3.0.1"
version = "3.0.2"
description = "Builds ROS docker images that support GUI with either X11 or Wayland."
authors = [
"Athanasios <[email protected]>",
Expand Down
5 changes: 5 additions & 0 deletions turludock/helper_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from typing import List

import requests
import urllib3
from loguru import logger
from packaging.version import InvalidVersion, Version

Expand Down Expand Up @@ -123,6 +124,10 @@ def get_llvm_supported_versions() -> List[int]:
# Get LLVM install script which contains info about the supported versions
url = "https://apt.llvm.org/llvm.sh"
try:
# fixes warning: InsecureRequestWarning: Unverified HTTPS request is being made to host 'apt.llvm.org'
# when using verify=False in requests.get()
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
# Get the content of the URL
response = requests.get(url, timeout=10, verify=False)
except Exception as e:
logger.error(f"Could not get supported LLVM versions. Requests.get() error: {e}")
Expand Down

0 comments on commit f901845

Please sign in to comment.