Skip to content

Remove unnecessary continue in finally block causing SyntaxWarning #252

@IamSIJ

Description

@IamSIJ

Problem

The code in zendriver/core/connection.py line 628-629 contains a continue statement in a finally block, which triggers a SyntaxWarning:

finally:
    continue

Solution

Remove the finally: continue block entirely:

                    except:  # noqa
                        logger.debug("NOT GOOD", exc_info=True)
                        continue
-               finally:
-                   continue
        for ed in enabled_domains:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions