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
F28186494: D1654.id4226.diff
Sun, May 10, 11:39
F28186476: D1654.id4224.diff
Sun, May 10, 11:39
F28183842: D1654.id4227.diff
Sun, May 10, 11:20
F28142304: D1654.id4225.diff
Sun, May 10, 06:19
F28102535: D1654.diff
Sun, May 10, 01:20
F28055348: D1654.id4224.diff
Sat, May 9, 19:29
F28046480: D1654.id4225.diff
Sat, May 9, 18:20
F28027921: D1654.id4227.diff
Sat, May 9, 15:58
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.