Fixes
This commit is contained in:
2
go.mod
2
go.mod
@ -1,6 +1,6 @@
|
||||
module pernicious.games/advent-of-code-scanner
|
||||
|
||||
go 1.21.4
|
||||
go 1.21
|
||||
|
||||
require (
|
||||
github.com/goccy/go-json v0.10.2
|
||||
|
4
main.go
4
main.go
@ -68,8 +68,8 @@ func main() {
|
||||
fmt.Println("Started AOC leaderboard scanner.")
|
||||
|
||||
dotenvErr := godotenv.Load()
|
||||
if dotenvErr != nil {
|
||||
log.Fatal("Error loading .env file")
|
||||
if dotenvErr != nil && !errors.Is(dotenvErr, os.ErrNotExist) {
|
||||
log.Fatalln("Error loading .env file:", dotenvErr)
|
||||
}
|
||||
|
||||
session := *sessionArg
|
||||
|
Reference in New Issue
Block a user