From 268edb3d709435eadc6aa910eeba11a0e28c547a Mon Sep 17 00:00:00 2001 From: Aleksandr Razumov Date: Sun, 24 Mar 2024 11:48:52 +0300 Subject: [PATCH] fix(userbot): fix env err --- examples/userbot/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/userbot/main.go b/examples/userbot/main.go index 03b172f8ba..75f63cf1c7 100644 --- a/examples/userbot/main.go +++ b/examples/userbot/main.go @@ -51,8 +51,7 @@ func run(ctx context.Context) error { flag.Parse() // Using ".env" file to load environment variables. - err := godotenv.Load() - if err != nil { + if err := godotenv.Load(); err != nil && !os.IsNotExist(err) { return errors.Wrap(err, "load env") }