mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-02-04 00:05:22 +00:00
Bump confutils: no more exception leak
This commit is contained in:
parent
cc4d13835f
commit
d8ec962b6a
@ -643,7 +643,7 @@ proc getProtocolFlags*(conf: NimbusConf): set[ProtocolFlag] =
|
||||
proc getRpcFlags(api: openArray[string]): set[RpcFlag] =
|
||||
if api.len == 0:
|
||||
return {RpcFlag.Eth}
|
||||
|
||||
|
||||
for item in repeatingList(api):
|
||||
case item.toLowerAscii()
|
||||
of "eth": result.incl RpcFlag.Eth
|
||||
@ -747,7 +747,7 @@ func shareServerWithEngineApi*(conf: NimbusConf): bool =
|
||||
func httpServerEnabled*(conf: NimbusConf): bool =
|
||||
conf.graphqlEnabled or
|
||||
conf.wsEnabled or
|
||||
conf.rpcEnabled
|
||||
conf.rpcEnabled
|
||||
|
||||
# KLUDGE: The `load()` template does currently not work within any exception
|
||||
# annotated environment.
|
||||
@ -768,9 +768,6 @@ proc makeConfig*(cmdLine = commandLineParams()): NimbusConf
|
||||
{.pop.}
|
||||
except CatchableError as e:
|
||||
raise e
|
||||
except Exception as e:
|
||||
{.warning: "Kludge(BareExcept): `load()` template in vendor package needs to be updated"}
|
||||
raiseAssert "Ooops makeConfig(): name=" & $e.name & " msg=" & e.msg
|
||||
|
||||
var networkId = result.getNetworkId()
|
||||
|
||||
|
2
vendor/nim-confutils
vendored
2
vendor/nim-confutils
vendored
@ -1 +1 @@
|
||||
Subproject commit 7568f1b7c3142d8e87c1f3dd42924238926affbe
|
||||
Subproject commit 57ff0b8555f8c56425e87ca5de1a96a209631b2e
|
Loading…
x
Reference in New Issue
Block a user