Open njyjn opened 7 years ago
This error is caused by the way the getFinalString()
method is being overloaded. The way to fix this is to throw an error reply if no event is ongoing.
Issue was fixed in headmaster.py
with 9959b1d2038a38ce7113d856d5ca87f7f6258052 where cg['...'] was returning KeyError due to unpopulated field.
Fix: Use .get(..., 0)
to enforce 0.
Now /event report
returns an empty list which is a temporary fix. In the future, we need to pull up a 'no event error' or something.
/event report
Add try-except block to handle error, and send user an appropriate message.