Better handling bad timePerdiod definition
This commit is contained in:
1 parent
2311838023
commit
0ff6e43075
1 file changed
+7
-3
+7
-3
@@ -827,8 +827,12 @@
|
||||
|
||||
n = 0;
|
||||
|
||||
callTheBot();
|
||||
|
||||
if (currentTimePeriod !== undefined) {
|
||||
callTheBot();
|
||||
} else {
|
||||
logger.write(MODULE_NAME, "[ERROR] start -> processTimePeriodsDailyFiles -> periodsControlLoop -> Time Period not Recognized. Can not continue." );
|
||||
callBackFunction(global.DEFAULT_FAIL_RESPONSE);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (err) {
|
||||
@@ -842,7 +846,7 @@
|
||||
try {
|
||||
|
||||
if (FULL_LOG === true) { logger.write(MODULE_NAME, "[INFO] start -> processTimePeriodsDailyFiles -> callTheBot -> Entering function."); }
|
||||
|
||||
|
||||
usertBot.start(
|
||||
multiPeriodDataFiles,
|
||||
currentTimePeriod,
|
||||
|
||||
Reference in new issue
Block a user