fix crash
This commit is contained in:
+2
-1
@@ -4,8 +4,9 @@ const { closeBudget, ensurePayee, getAccountBalance, getAccountNote, openBudget,
|
|||||||
require("dotenv").config();
|
require("dotenv").config();
|
||||||
|
|
||||||
async function getZestimate(URL) {
|
async function getZestimate(URL) {
|
||||||
|
let response = undefined;
|
||||||
try {
|
try {
|
||||||
const response = await fetch(URL, {
|
response = await fetch(URL, {
|
||||||
headers: {
|
headers: {
|
||||||
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36',
|
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36',
|
||||||
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8',
|
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8',
|
||||||
|
|||||||
Reference in New Issue
Block a user