Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29328208: Noissue - [CMS] Avoid overzealous catching of KeyError during conversion (Closed)

Created:
Sept. 21, 2015, 9:16 a.m. by kzar
Modified:
Sept. 21, 2015, 1:50 p.m.
Visibility:
Public.

Description

Noissue - [CMS] Avoid overzealous catching of KeyError during conversion

Patch Set 1 #

Total comments: 2

Patch Set 2 : Go back to using try... catch #

Total comments: 2

Patch Set 3 : Gave converter_class variable a better name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M cms/utils.py View 1 2 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 7
kzar
Patch Set 1 This is something that kept catching me out (ho ho), I kept ...
Sept. 21, 2015, 9:21 a.m. (2015-09-21 09:21:48 UTC) #1
Wladimir Palant
https://codereview.adblockplus.org/29328208/diff/29328209/cms/utils.py File cms/utils.py (right): https://codereview.adblockplus.org/29328208/diff/29328209/cms/utils.py#newcode54 cms/utils.py:54: raise Exception("Page %s uses unknown format %s" % (page, ...
Sept. 21, 2015, 10:54 a.m. (2015-09-21 10:54:29 UTC) #2
kzar
Patch Set 2 : Go back to using try... catch https://codereview.adblockplus.org/29328208/diff/29328209/cms/utils.py File cms/utils.py (right): https://codereview.adblockplus.org/29328208/diff/29328209/cms/utils.py#newcode54 ...
Sept. 21, 2015, 11:06 a.m. (2015-09-21 11:06:22 UTC) #3
Wladimir Palant
https://codereview.adblockplus.org/29328208/diff/29328446/cms/utils.py File cms/utils.py (right): https://codereview.adblockplus.org/29328208/diff/29328446/cms/utils.py#newcode52 cms/utils.py:52: converter = converters[format] I think this variable is better ...
Sept. 21, 2015, 11:18 a.m. (2015-09-21 11:18:02 UTC) #4
kzar
Patch Set 3 : Gave converter_class variable a better name https://codereview.adblockplus.org/29328208/diff/29328446/cms/utils.py File cms/utils.py (right): https://codereview.adblockplus.org/29328208/diff/29328446/cms/utils.py#newcode52 ...
Sept. 21, 2015, 11:23 a.m. (2015-09-21 11:23:15 UTC) #5
Wladimir Palant
LGTM
Sept. 21, 2015, 11:35 a.m. (2015-09-21 11:35:20 UTC) #6
Sebastian Noack
Sept. 21, 2015, 11:49 a.m. (2015-09-21 11:49:29 UTC) #7
LGTM

Powered by Google App Engine
This is Rietveld