Skip to content

Commit

Permalink
try/catch
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel Moschkin committed Nov 17, 2024
1 parent 2f5b2b6 commit 90c3c0f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion app/logic/celestial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,15 @@ class CelestialMarket {
return null;
}
catch {
return market?.root.aggregation ?? null;
try {
if (market) {
this.lastRefresh = new Date();
}
return market?.root.aggregation ?? null;
}
catch {
return null;
}
}
}
}
Expand Down

0 comments on commit 90c3c0f

Please sign in to comment.