Skip to content

DEBUG set to empty string causes crash #62

@SJLC

Description

@SJLC

Describe the bug
tftpdaemon crashes if DEBUG var is set to empty string (rather than not present)

To Reproduce
Run

DEBUG= tftpdaemon start

Result

Traceback (most recent call last):
  File "/home/sjl/work/goleta_star/tempalt/gs-radar-controller/.venv/bin/tftpdaemon", line 91, in <module>
    setup_logging(int(DEBUG), Path(LOG), 'tftpd')
ValueError: invalid literal for int() with base 10: ''

Expected behavior
Initialize DEBUG to default value instead of crashing

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