UseCase2 is_triggered function not working properly
Closed this issue · 0 comments
aichelberg2 commented
Exception has occurred: AttributeError
module 'datetime' has no attribute 'now'
File "C:\Users\L15\temp\ASWE\OASIS\usecases\UseCase2.py", line 35, in is_triggered
current_time = datetime.now().strftime("%H:%M")
File "C:\Users\L15\temp\ASWE\OASIS\mediator.py", line 22, in check_for_trigger
if self.use_case_2.is_triggered():
File "C:\Users\L15\temp\ASWE\OASIS\main.py", line 30, in setup
mediator.check_for_trigger()
File "C:\Users\L15\temp\ASWE\OASIS\main.py", line 66, in
setup()
AttributeError: module 'datetime' has no attribute 'now'