We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 035f349 commit 059a3cfCopy full SHA for 059a3cf
contrib/devtools/github-merge.py
@@ -23,6 +23,7 @@
23
import json
24
import codecs
25
from urllib.request import Request, urlopen
26
+from urllib.error import HTTPError
27
28
# External tools (can be overridden using environment)
29
GIT = os.getenv('GIT','git')
@@ -57,6 +58,11 @@ def retrieve_pr_info(repo,pull):
57
58
reader = codecs.getreader('utf-8')
59
obj = json.load(reader(result))
60
return obj
61
+ except HTTPError as e:
62
+ error_message = e.read()
63
+ print('Warning: unable to retrieve pull information from github: %s' % e)
64
+ print('Detailed error: %s' % error_message)
65
+ return None
66
except Exception as e:
67
print('Warning: unable to retrieve pull information from github: %s' % e)
68
return None
0 commit comments