Commit 6766c867 authored by Jérome Perrin's avatar Jérome Perrin Committed by Arnaud Fontaine

dms: pylint on py3

parent 4ed1d630
...@@ -4,6 +4,6 @@ i=u.find('://') ...@@ -4,6 +4,6 @@ i=u.find('://')
if i>-1: if i>-1:
prot=u[:i] prot=u[:i]
if prot not in o.getProtocolList(): if prot not in o.getProtocolList():
raise Exception("Protocol "+prot+" not supported") raise ValueError("Protocol "+prot+" not supported")
o.setUrlString(u[i+3:]) o.setUrlString(u[i+3:])
o.setUrlProtocol(prot) 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