[mod errors] Fix await on non async function

This commit is contained in:
Suwako Moriya 2020-03-30 02:29:19 +00:00
parent 7a34e57a2d
commit 2738508875

View File

@ -42,7 +42,7 @@ class MainClass(BaseClassPython):
await to_delete.delete() await to_delete.delete()
except: except:
raise raise
await self.objects.save_object('errorsList', self.errorsList) self.objects.save_object('errorsList', self.errorsList)
async def command(self, message, args, kwargs): async def command(self, message, args, kwargs):
raise Exception("KERNEL PANIC!!!") raise Exception("KERNEL PANIC!!!")