Skip to content

execute some code before retrying #13

@vionemc

Description

@vionemc

Is it possible to execute some code before retrying?

For example:

try:		
	return function(base_db, sql_string, sql_vars, debug_sql)
except (AttributeError, MySQLdb.OperationalError):
	base_db.__init__()
	return self.retry_db_errors(function(base_db, sql_string, sql_vars, debug_sql))

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions