diff --git a/src/nimblepkg/packageinfo.nim b/src/nimblepkg/packageinfo.nim index f854676..b2f0ea7 100644 --- a/src/nimblepkg/packageinfo.nim +++ b/src/nimblepkg/packageinfo.nim @@ -227,7 +227,9 @@ proc readPackageList(name: string, options: Options): JsonNode = for name, list in options.config.packageLists: fetchList(list, options) else: - raise newException(NimbleError, "Please run nimble refresh.") + # The user might not need a package list for now. So let's try + # going further. + return newJArray() return parseFile(options.getNimbleDir() / "packages_" & name.toLowerAscii() & ".json")