Skip to content

Commit

Permalink
Update timeout controls
Browse files Browse the repository at this point in the history
  • Loading branch information
BlankerL committed Apr 19, 2022
1 parent 6c6fb00 commit 14dcd63
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions script.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@Author: Jiabao Lin
@Date: 2020/1/31
"""
from github3 import login, session
from github3 import login
from dotenv import load_dotenv
from pymongo import MongoClient
import os
Expand Down Expand Up @@ -80,7 +80,9 @@ def run(self):
def github_manager():
# GitHub connection
github = login(token=os.getenv('GITHUB_TOKEN'))
github.session = session.GitHubSession(default_read_timeout=10, default_connect_timeout=10)
github.session.default_read_timeout = 20
github.session.default_connect_timeout = 20

repository = github.repository(owner='BlankerL', repository='DXY-COVID-19-Data')
release = repository.create_release(
tag_name='{tag_name}'.format(
Expand Down

0 comments on commit 14dcd63

Please sign in to comment.