Skip to content

Add error handling to start_engine() function if the connection string is invalid #1

Description

@velac01

Description

The start_engine() function in this repository does not currently handle errors if the connection string is invalid. This can lead to unexpected behavior, such as a crash or an error message being printed to the console.

To fix this, we can add an except clause to the start_engine() function to catch any errors that occur when trying to connect to the database. The except clause should print a more informative error message to the console, such as the specific error that occurred.

Expected Behavior

If the start_engine() function has issues, the error should be printed to the console and the program should be terminated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't workinggood first issueGood for newcomers

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions