Skip to content

Commit

Permalink
add error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
scarlehoff committed Aug 30, 2021
1 parent 0f84354 commit 1a1c3d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pybliotecario/components/arxiv_mod.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1a1c3d6

Please sign in to comment.