mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 17:25:22 +03:00
Set a timeout on github release check
This commit is contained in:
parent
3846a13805
commit
659324cb29
@ -22,7 +22,8 @@ logger = logging.getLogger(__name__)
|
||||
def get_latest_version() -> str:
|
||||
try:
|
||||
request = requests.get(
|
||||
"https://api.github.com/repos/blakeblackshear/frigate/releases/latest"
|
||||
"https://api.github.com/repos/blakeblackshear/frigate/releases/latest",
|
||||
timeout=10
|
||||
)
|
||||
except:
|
||||
return "unknown"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user