fix crash
This commit is contained in:
+2
-1
@@ -4,8 +4,9 @@ const { closeBudget, ensurePayee, getAccountBalance, getAccountNote, openBudget,
|
||||
require("dotenv").config();
|
||||
|
||||
async function getZestimate(URL) {
|
||||
let response = undefined;
|
||||
try {
|
||||
const response = await fetch(URL, {
|
||||
response = await fetch(URL, {
|
||||
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',
|
||||
'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