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
F25270561: D1654.id4227.diff
Wed, Apr 8, 08:06
Unknown Object (File)
Sun, Apr 5, 13:20
Unknown Object (File)
Sat, Apr 4, 13:12
Unknown Object (File)
Thu, Apr 2, 03:53
Unknown Object (File)
Mon, Mar 30, 22:19
Unknown Object (File)
Mon, Mar 30, 19:10
Unknown Object (File)
Mon, Mar 30, 07:39
Unknown Object (File)
Sun, Mar 29, 11:07
Subscribers
None

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
http2pls
Build Status
Buildable 2599
Build 2847: arc lint + arc unit

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.