lib/kobot/engine.rb in kobot-1.3.0 vs lib/kobot/engine.rb in kobot-2.0.0
- old
+ new
@@ -195,9 +195,11 @@
Kobot.logger.info(
"[Force] should have exited: today=#{@today} is marked as public holiday: #{@kot_data[:today]}"
)
end
+ return unless Config.auto_skip
+
if kot_non_work_schedule?
raise KotRecordError, "Today=#{@today} is non-work schedule: #{@kot_data[:today_schedule]}" unless Config.force
Kobot.logger.info(
"[Force] should have exited: today=#{@today} is non-work schedule: #{@kot_data[:today_schedule]}"