Skip to content

Avoid connecting to FTP server on import #242

@fccoelho

Description

@fccoelho

When one imports the SINAN module, the line below makes a connection to the FTP server.

sinan = SINAN().load()

In situations where the server may be unavailable, this will raise an exception. This connection should be established only when needed and within a try/except clause to avoid crashing code using PySUS as a library.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions