Skip to content

Commit

Permalink
Dont exit when no dotenv file found
Browse files Browse the repository at this point in the history
  • Loading branch information
tk-nguyen committed Aug 5, 2024
1 parent dd27ec6 commit 3a09508
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 20 deletions.
38 changes: 20 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sbot"
version = "0.1.14"
version = "0.1.15"
authors = ["Nguyen Thai <[email protected]>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const DUCKDUCKGO_ICON: &str = "https://duckduckgo.com/assets/icons/meta/DDG-iOS-
#[tokio::main]
async fn main() -> Result<()> {
color_eyre::install()?;
dotenv()?;
dotenv().ok();
if env::var("RUST_LOG").is_err() {
env::set_var("RUST_LOG", "info");
}
Expand Down

0 comments on commit 3a09508

Please sign in to comment.