Skip to content

Commit

Permalink
Update Monitor.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
uilton-oliveira committed Jan 31, 2022
1 parent 9bc33a1 commit 1e4ffa6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Monitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,11 @@ private void ForceImport()
private void Scan()
{
var rawJson = Get($"/api/wanted/missing?pageSize=50&apikey={Settings.APIKey}");
Console.WriteLine($"{Settings.Provider()} GET Result: {rawJson}");
if (String.IsNullOrEmpty(rawJson) {
Console.WriteLine($"{Settings.Provider()} GET returned null or empty, skipping...");
return;
})
Console.WriteLine($"{Settings.Provider()} GET sent");
dynamic task = JObject.Parse(rawJson);

List<dynamic> searchIds = new List<dynamic>();
Expand Down

0 comments on commit 1e4ffa6

Please sign in to comment.