1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00
This commit is contained in:
Steffo 2019-11-05 15:43:01 +01:00
parent ed79f4f1f7
commit 7936d5b291
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ class DiarioquoteCommand(Command):
entry_id = int(args[0].lstrip("#")) entry_id = int(args[0].lstrip("#"))
except ValueError: except ValueError:
raise CommandError("L'id che hai specificato non è valido.") raise CommandError("L'id che hai specificato non è valido.")
entry: Diario = await data.session.query(self.alchemy.Diario).get(entry_id) entry: Diario = await asyncify(data.session.query(self.alchemy.Diario).get, entry_id)
if entry is None: if entry is None:
raise CommandError("Nessuna riga con quell'id trovata.") raise CommandError("Nessuna riga con quell'id trovata.")
await data.reply(str(entry)) await data.reply(str(entry))

View file

@ -1,4 +1,4 @@
semantic = "5.0a86" semantic = "5.0a87"
if __name__ == "__main__": if __name__ == "__main__":
print(semantic) print(semantic)