added try catch to haifa
This commit is contained in:
parent
265a182d8f
commit
d5408c359b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue