This commit is contained in:
Parnic
2023-12-02 19:48:25 -06:00
parent a5ae68fa66
commit f9fa472373
2 changed files with 3 additions and 3 deletions

2
go.mod
View File

@ -1,6 +1,6 @@
module pernicious.games/advent-of-code-scanner module pernicious.games/advent-of-code-scanner
go 1.21.4 go 1.21
require ( require (
github.com/goccy/go-json v0.10.2 github.com/goccy/go-json v0.10.2

View File

@ -68,8 +68,8 @@ func main() {
fmt.Println("Started AOC leaderboard scanner.") fmt.Println("Started AOC leaderboard scanner.")
dotenvErr := godotenv.Load() dotenvErr := godotenv.Load()
if dotenvErr != nil { if dotenvErr != nil && !errors.Is(dotenvErr, os.ErrNotExist) {
log.Fatal("Error loading .env file") log.Fatalln("Error loading .env file:", dotenvErr)
} }
session := *sessionArg session := *sessionArg