Skip to content

Commit

Permalink
Fix for when SiteClient constructor throws ArgumentError (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunmorgus authored and ejizba committed Mar 28, 2018
1 parent b4a1fc6 commit 04e146d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/explorer/WebAppProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ export class WebAppProvider implements IChildProvider {
this._nextLink = webAppCollection.nextLink;

return await Promise.all(webAppCollection
.filter((s: Site) => {
try {
const siteClient = new SiteClient(s, node);
return siteClient !== undefined;
} catch { return false; }
})
.map((s: Site) => new SiteClient(s, node))
.filter((s: SiteClient) => !s.isFunctionApp)
.map(async (s: SiteClient) => {
Expand Down

0 comments on commit 04e146d

Please sign in to comment.