Fixes
This commit is contained in:
2
go.mod
2
go.mod
@ -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
|
||||||
|
4
main.go
4
main.go
@ -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
|
||||||
|
Reference in New Issue
Block a user