Commit be44b1a7 authored by Jérome Perrin's avatar Jérome Perrin

dms: pylint on py3

parent 1a29e90f
......@@ -4,6 +4,6 @@ i=u.find('://')
if i>-1:
prot=u[:i]
if prot not in o.getProtocolList():
raise Exception("Protocol "+prot+" not supported")
raise ValueError("Protocol "+prot+" not supported")
o.setUrlString(u[i+3:])
o.setUrlProtocol(prot)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment