Skip to content

[ASGI] UnboundLocalError local variable 'start' referenced before assignment #1883

@thomasleveil

Description

@thomasleveil

This error arises when an exception occurs in this try block before the start = default_timer() line.

In such case the start variable is undefined. Unfortunately, the finally block tries to compute the duration using this variable.

Bug instroduced with cbf005b

related issue : #1478

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions