mirror of https://github.com/Chocobozzz/PeerTube
Fix views crash on geoip update failure
parent
61fec4e4ef
commit
f8b8dc674e
|
@ -25,9 +25,9 @@ export class GeoIP {
|
|||
const emptyResult = { country: null, subdivisionName: null }
|
||||
if (CONFIG.GEO_IP.ENABLED === false) return emptyResult
|
||||
|
||||
await this.initReadersIfNeeded()
|
||||
|
||||
try {
|
||||
await this.initReadersIfNeeded()
|
||||
|
||||
const countryResult = this.countryReader?.get(ip)
|
||||
const cityResult = this.cityReader?.get(ip)
|
||||
|
||||
|
|
Loading…
Reference in New Issue