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, 08:28 AM   #1
njpig
Zealot
njpig began at the beginning.
 
Posts: 108
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, 08: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: 45,609
Karma: 28549044
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 offline   Reply With Quote
Advert
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 12:40 PM
Auto Retry if Scheduled download fail!!! jardenman26 Recipes 3 06-21-2018 06:28 AM
Auto Retry if Scheduled download fails stevesout Calibre 1 03-15-2018 12:26 AM
Minor UI improvement - retry button whismerhill Calibre 7 05-18-2016 02:01 AM
Retry Job? truth1ness Calibre 1 04-01-2015 08:26 PM


All times are GMT -4. The time now is 08:36 PM.


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