Page MenuHomeDevCentral

Deploy for dereckson a playlist generator script on devserver

Authored by dereckson on Jul 21 2018, 15:21.

Diff Detail

rOPS Nasqueron Operations
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

dereckson created this revision.Jul 21 2018, 15:21
dereckson requested review of this revision.Jul 21 2018, 15:27
dereckson planned changes to this revision.Jul 21 2018, 15:50
dereckson added inline comments.

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/", line 384, in _parse
  raise ValueError("unknown url type: %r" % self.full_url)

So a try block could handle URL errors here.


two \n

dereckson updated this revision to Diff 4225.Jul 22 2018, 12:47

PEP-8 compliant

dereckson updated this revision to Diff 4226.Jul 22 2018, 12:58

Handle URL errors

dereckson accepted this revision.Jul 22 2018, 13:03
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.