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 489f603 commit fb53a48Copy full SHA for fb53a48
github/github.go
@@ -155,7 +155,18 @@ Pages:
155
log.Fatalln("Too many errors received. Quitting.")
156
}
157
158
- dataNode := rootNode["data"].(map[string]interface{})
+ dataNode, ok := rootNode["data"].(map[string]interface{})
159
+ if !ok {
160
+ retryCount++
161
+ if retryCount < maxRetryCount {
162
+ log.Println("Error accessing data element")
163
+ time.Sleep(10 * time.Second)
164
+ continue Pages
165
+ } else {
166
+ log.Fatalln("Too many errors received. Quitting.")
167
+ }
168
169
+
170
searchNode := dataNode["search"].(map[string]interface{})
171
totalUsersCount = int(searchNode["userCount"].(float64))
172
edgeNodes := searchNode["edges"].([]interface{})
0 commit comments