Page MenuHomeDevCentral

Deploy for dereckson a playlist generator script on devserver
ClosedPublic

Authored by dereckson on Jul 21 2018, 15:21.
Tags
None
Referenced Files
F7880501: D1654.diff
Sun, May 4, 13:51
Unknown Object (File)
Sat, Apr 26, 12:27
Unknown Object (File)
Fri, Apr 25, 07:48
Unknown Object (File)
Thu, Apr 24, 02:46
Unknown Object (File)
Tue, Apr 22, 18:54
Unknown Object (File)
Mon, Apr 21, 21:33
Unknown Object (File)
Mon, Apr 21, 21:28
Unknown Object (File)
Mon, Apr 21, 21:27
Subscribers
None

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson added inline comments.
roles/devserver/userland-home/files/dereckson/bin/http2pls
45

If the URL isn't valid, the urlopen function will raise the following exception:

ValueError: unknown url type: 'fdfdf'

File "/usr/local/lib/python3.6/urllib/request.py", line 384, in _parse
  raise ValueError("unknown url type: %r" % self.full_url)

So a try block could handle URL errors here.

50

two \n

dereckson marked an inline comment as done.
This revision is now accepted and ready to land.Jul 22 2018, 13:03
This revision was automatically updated to reflect the committed changes.