diff options
| author | Nathan Perry <np@nathanperry.dev> | 2024-08-06 20:31:59 -0400 |
|---|---|---|
| committer | Nathan Perry <np@nathanperry.dev> | 2024-08-06 20:31:59 -0400 |
| commit | 0cc56bc18db7bb0818fbbbc1c8db670dd039c718 (patch) | |
| tree | a88b3a336a62475c2e4d2438ba78614b583486db | |
| parent | 806e67c1a11314587568051ff4e3ef71194fec98 (diff) | |
fix dotenv issue
| -rw-r--r-- | src/bin/batch_delmeme.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/batch_delmeme.rs b/src/bin/batch_delmeme.rs index 99c57fe..946bbc3 100644 --- a/src/bin/batch_delmeme.rs +++ b/src/bin/batch_delmeme.rs @@ -1,5 +1,6 @@ use clap::Parser; use diesel_async::AsyncPgConnection; +use dotenv::dotenv; use thulani::db; #[derive(clap::Parser)] @@ -33,7 +34,7 @@ async fn create_demo_meme(conn: &mut AsyncPgConnection, owner: u64) -> anyhow::R #[tokio::main] pub async fn main() -> anyhow::Result<()> { thulani::log_setup::init(false).expect("initializing logging"); - dotenv::dotenv()?; + dotenv().ok(); let opts = Opts::parse(); |
