added try catch to haifa

This commit is contained in:
Kfir Dayan 2024-02-04 12:55:47 +02:00
parent 265a182d8f
commit d5408c359b

View file

@ -9,7 +9,7 @@ import moment from "moment"; // require
export default class GameSource { export default class GameSource {
async getGamesFromHaifa(): Promise<GoogleCalendarEvent[]> { async getGamesFromHaifa(): Promise<GoogleCalendarEvent[]> {
const sourceUrl = `http://mhaifafc.com/games?lang=en`; const sourceUrl = `https://mhaifafc.com/games?lang=en`;
console.log('Trying to get games from Haifa...'); console.log('Trying to get games from Haifa...');
try { try {
const result = await axios.get(sourceUrl); const result = await axios.get(sourceUrl);