@@ -42,10 +42,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4242 return (mod && mod.__esModule) ? mod : { "default": mod };
4343};
4444Object.defineProperty(exports, "__esModule", ({ value: true }));
45- const host = "www.pythonanywhere.com";
46- const username = "electricchecker";
47- const api_token = "29424564073e9d4bf07d420e09d5788c5bacf6f9";
48- const domain_name = "electricchecker.pythonanywhere.com";
4945const core = __importStar(__nccwpck_require__(2186));
5046const axios_1 = __importDefault(__nccwpck_require__(8757));
5147/**
@@ -172,19 +168,25 @@ function performPostRequest(requestUrl, payload, token) {
172168}
173169function parseAndCheckAlembic(response) {
174170 return __awaiter(this, void 0, void 0, function* () {
175- const parsedData = JSON.parse(response);
176- const output = parsedData.output;
177- if (!output) {
178- return false;
179- }
180- const lines = output.split("\r\n").filter((line) => line.trim() !== "");
181- const alembicFound = lines.some((line) => line.includes("**Alembic found**"));
182- if (alembicFound) {
183- console.log("Alembic found!");
184- return true;
171+ try {
172+ const output = response.output;
173+ if (!output) {
174+ console.log("No output found in the response.");
175+ return false;
176+ }
177+ const lines = output.split("\r\n").filter((line) => line.trim() !== "");
178+ const alembicFound = lines.some((line) => line.includes("**Alembic found**"));
179+ if (alembicFound) {
180+ console.log("Alembic found!");
181+ return true;
182+ }
183+ else {
184+ console.log("Alembic not found!");
185+ return false;
186+ }
185187 }
186- else {
187- console.log(" Alembic not found!" );
188+ catch (error) {
189+ console.error(`Error during Alembic check: ${error.message}` );
188190 return false;
189191 }
190192 });
0 commit comments