PyGithub Programming Model: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Internal=
=Internal=
* [[Python_Package_PyGithub#Subjects|PyGithub]]
* [[Python_Package_PyGithub#Subjects|PyGithub]]
=Configuring Retry=
=Turn on Debugging=
<syntaxhighlight lang='py'>
<syntaxhighlight lang='py'>
status_forcelist = [403, 500, 502, 504]  # retry 403s, 5XX from GitHub
from github import enable_console_debug_logging
retry = Retry(total=10, backoff_factor=0.2, raise_on_status=True, status_forcelist=status_forcelist)
 
github = Github(base_url='...', retry=retry, ...)
enable_console_debug_logging()
</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 01:50, 16 May 2023

Internal

Turn on Debugging

from github import enable_console_debug_logging

enable_console_debug_logging()