Closed JordanP closed 8 years ago
Meh :-P
Is that a +1 :) ?
It's So be it
with a slight silent (grrr stupid rule)
coming with it.
Yeah, this rule is new. Because the failure is new. Anyway, easier to fix than to add another exception.
Could generalize as well:
def map_maybe(f, v):
return f(v) if v is not None else None
class ...:
def ...:
self._conn_timeout = map_maybe(float, conf.get('sproxyd_conn_timeout'))
self._read_timeout = map_maybe(float, conf.get('sproxyd_proxy_timeout'))
:grin:
Call me maybe :musical_note:
So be it.