Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 11-14-2022, 07:28 AM   #1
njpig
Connoisseur
njpig began at the beginning.
 
Posts: 95
Karma: 10
Join Date: Sep 2020
Device: kindle paperwhite3/Oasis2
Import retry(https://pypi.org/project/retry/)

Hi,

I would like to use retry(https://pypi.org/project/retry/) in src/calibre/web/fetch/simple.py

How to import this?
njpig is offline   Reply With Quote
Old 11-14-2022, 07:38 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,863
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There is no need to import it, write your own retry decorator, it will be 10 lines of code.
kovidgoyal is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Does calibre support retry-after http headers ? SimonMc Library Management 6 12-15-2021 11:40 AM
Auto Retry if Scheduled download fail!!! jardenman26 Recipes 3 06-21-2018 05:28 AM
Auto Retry if Scheduled download fails stevesout Calibre 1 03-14-2018 11:26 PM
Minor UI improvement - retry button whismerhill Calibre 7 05-18-2016 01:01 AM
Retry Job? truth1ness Calibre 1 04-01-2015 07:26 PM


All times are GMT -4. The time now is 12:31 AM.


MobileRead.com is a privately owned, operated and funded community.