Commit 46b1d32e authored by Jérome Perrin's avatar Jérome Perrin Committed by Arnaud Fontaine

dms: pylint on py3

parent 47122e40
......@@ -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