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
F32904563: D1654.diff
Sat, Jun 13, 01:38
F32885625: D1654.id4225.diff
Fri, Jun 12, 22:46
F32884713: D1654.id4226.diff
Fri, Jun 12, 22:38
F32882326: D1654.id4224.diff
Fri, Jun 12, 21:55
Unknown Object (File)
Mon, Jun 8, 08:07
Unknown Object (File)
Sun, Jun 7, 01:40
Unknown Object (File)
Sat, Jun 6, 14:00
Unknown Object (File)
Fri, Jun 5, 21:54
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.