More deprecation warning fixes (asyncdispatch, uri).
This commit is contained in:
parent
9471f585c2
commit
c0207dbae2
2 changed files with 16 additions and 16 deletions
|
|
@ -113,7 +113,7 @@ proc parseUri*(uri: string): Uri =
|
|||
var authority = ""
|
||||
i.inc parseUntil(uri, authority, {'/', '?', '#'}, i)
|
||||
if authority == "":
|
||||
raise newException(EInvalidValue, "Expected authority got nothing.")
|
||||
raise newException(ValueError, "Expected authority got nothing.")
|
||||
parseAuthority(authority, result)
|
||||
|
||||
# Path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue