fix: Do not panic if .env is not found.

This commit is contained in:
Kiril Kovachev 2025-05-08 23:18:32 +01:00
parent a6b5171ad8
commit 502170da63

View File

@ -55,7 +55,7 @@ fn setup(args: SetupArgs) -> Result<(), std::io::Error> {
#[tokio::main] #[tokio::main]
async fn main() -> Result<(), std::io::Error> { async fn main() -> Result<(), std::io::Error> {
dotenvy::dotenv().expect("Couldn't load .env file; please make sure to create one in the same directory as executing from!"); dotenvy::dotenv().inspect_err(|_| eprintln!("Couldn't load .env file; please make sure to create one in the same directory as executing from!")).ok();
let cli = Cli::parse(); let cli = Cli::parse();