mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Set a timeout on github release check (#3969)
* Set a timeout on github release check * Formatting
This commit is contained in:
parent
3846a13805
commit
53f7190d42
@ -22,7 +22,8 @@ logger = logging.getLogger(__name__)
|
|||||||
def get_latest_version() -> str:
|
def get_latest_version() -> str:
|
||||||
try:
|
try:
|
||||||
request = requests.get(
|
request = requests.get(
|
||||||
"https://api.github.com/repos/blakeblackshear/frigate/releases/latest"
|
"https://api.github.com/repos/blakeblackshear/frigate/releases/latest",
|
||||||
|
timeout=10,
|
||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
return "unknown"
|
return "unknown"
|
||||||
|
Loading…
Reference in New Issue
Block a user