Skip to content

exception is not retried #52

Open
Open
@chanansh

Description

@chanansh
class RateLimitExceed(Exception):
    """API reate limit exceed"""
    pass

class Api:
    @retry(RateLimitExceed, tries=-1, delay=0.1, logger=logger)
    def _api(self, query):
           message = api_call()
           if message == 'too fast':
                 raise(RateLimitExceed)

although the retry wrapper exists the code break with the exception when called.

The calls are done using joblib.Parallel.

could not reproduce with a minimal example (which works)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions