Commit f7fbeaf9 authored by Vincent Pelletier's avatar Vincent Pelletier

all: Make pylint happier.

parent 975d1c0b
...@@ -149,6 +149,7 @@ class SQLite3Storage(local): ...@@ -149,6 +149,7 @@ class SQLite3Storage(local):
if result_list: if result_list:
result, = result_list result, = result_list
return result return result
return None
def getConfigOnce(self, name, default): def getConfigOnce(self, name, default):
""" """
...@@ -474,6 +475,7 @@ class SQLite3Storage(local): ...@@ -474,6 +475,7 @@ class SQLite3Storage(local):
) )
if row is not None: if row is not None:
return row['crl'].encode('ascii') return row['crl'].encode('ascii')
return None
def getNextCertificateRevocationListNumber(self): def getNextCertificateRevocationListNumber(self):
""" """
......
...@@ -73,8 +73,9 @@ def retry(callback, try_count=200, try_delay=0.1): ...@@ -73,8 +73,9 @@ def retry(callback, try_count=200, try_delay=0.1):
for _ in xrange(try_count): for _ in xrange(try_count):
result = callback() result = callback()
if result: if result:
return result break
time.sleep(try_delay) time.sleep(try_delay)
return result
class FakeStreamRequest(object): class FakeStreamRequest(object):
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment