Skip to content

Commit 2f4b5c9

Browse files
chore: add timeout to request
1 parent 60541ad commit 2f4b5c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/api/plane/license/management/commands/register_instance.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ def check_for_current_version(self):
3636
def check_for_latest_version(self, fallback_version):
3737
try:
3838
response = requests.get(
39-
"https://api.github.com/repos/makeplane/plane/releases/latest"
39+
"https://api.github.com/repos/makeplane/plane/releases/latest",
40+
timeout=10,
4041
)
4142
response.raise_for_status()
4243
data = response.json()

0 commit comments

Comments
 (0)