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
F8420506: D1654.id.diff
Tue, May 13, 12:35
Unknown Object (File)
Fri, May 9, 18:51
Unknown Object (File)
Thu, May 8, 18:21
Unknown Object (File)
Thu, May 8, 14:30
Unknown Object (File)
Thu, May 8, 14:24
Unknown Object (File)
Thu, May 8, 12:48
Unknown Object (File)
Thu, May 8, 05:36
Unknown Object (File)
Thu, May 8, 03:45
Subscribers
None

Diff Detail

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

Event Timeline

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

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.

49

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.