From 1a1c3d6d3ff561eed6e64c1ab1792ba152e7a3ce Mon Sep 17 00:00:00 2001 From: juacrumar Date: Mon, 30 Aug 2021 18:51:10 +0200 Subject: [PATCH] add error msg --- src/pybliotecario/components/arxiv_mod.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pybliotecario/components/arxiv_mod.py b/src/pybliotecario/components/arxiv_mod.py index 6d519ab..936bd6b 100644 --- a/src/pybliotecario/components/arxiv_mod.py +++ b/src/pybliotecario/components/arxiv_mod.py @@ -205,6 +205,9 @@ def cmdline_command(self, args): def telegram_message(self, msg): command = msg.command arxiv_id = msg.text.strip() + if not arxiv_id: + self.send_msg("This commands needs an argument") + return if command in ("arxivget", "arxiv-get", "arxiv_get"): file_send = arxiv_get_pdf(arxiv_id) self.send_file(file_send, delete=True)