You are on page 1of 1

Traceback (most recent call last):

File "asyncpg\protocol\prepared_stmt.pyx", line 146, in


asyncpg.protocol.protocol.PreparedStatementState._encode_bind_msg
File "asyncpg\protocol\codecs/base.pyx", line 192, in
asyncpg.protocol.protocol.Codec.encode
File "asyncpg\protocol\codecs/base.pyx", line 103, in
asyncpg.protocol.protocol.Codec.encode_scalar
File "asyncpg\pgproto\./codecs/datetime.pyx", line 147, in
asyncpg.pgproto.pgproto.timestamp_encode
TypeError: expected a datetime.date or datetime.datetime instance, got 'FutureTime'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):


File "C:\Users\User\AppData\Local\Programs\Python\Python38-32\lib\site-
packages\discord\ext\commands\core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "C:\Users\User\Desktop\dredd v3\cogs\moderation.py", line 470, in mute
await default.execute_temporary(ctx, 1, member, ctx.author, ctx.guild,
muterole, duration, reason)
File "C:\Users\User\Desktop\dredd v3\utils\default.py", line 322, in
execute_temporary
await ctx.bot.db.execute("INSERT INTO modactions(time, user_id, action,
guild_id, mod_id, role_id, reason) VALUES($1, $2, $3, $4, $5, $6, $7)", duration if
duration is not None else duration.dt, user.id, action, guild.id, mod.id, role.id,
reason)
File "C:\Users\User\AppData\Local\Programs\Python\Python38-32\lib\site-
packages\asyncpg\pool.py", line 518, in execute
return await con.execute(query, *args, timeout=timeout)
File "C:\Users\User\AppData\Local\Programs\Python\Python38-32\lib\site-
packages\asyncpg\connection.py", line 274, in execute
_, status, _ = await self._execute(query, args, 0, timeout, True)
File "C:\Users\User\AppData\Local\Programs\Python\Python38-32\lib\site-
packages\asyncpg\connection.py", line 1402, in _execute
result, _ = await self.__execute(
File "C:\Users\User\AppData\Local\Programs\Python\Python38-32\lib\site-
packages\asyncpg\connection.py", line 1411, in __execute
return await self._do_execute(query, executor, timeout)
File "C:\Users\User\AppData\Local\Programs\Python\Python38-32\lib\site-
packages\asyncpg\connection.py", line 1433, in _do_execute
result = await executor(stmt, None)
File "asyncpg\protocol\protocol.pyx", line 178, in bind_execute
File "asyncpg\protocol\prepared_stmt.pyx", line 160, in
asyncpg.protocol.protocol.PreparedStatementState._encode_bind_msg
asyncpg.exceptions.DataError: invalid input for query argument $1:
<utils.btime.FutureTime object at 0x0577... (expected a datetime.date or
datetime.datetime instance, got 'FutureTime')

You might also like