1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-09-06 05:08:42 +02:00

- fixed read_sizelimit()

This commit is contained in:
Marcus Huewe
2010-04-22 20:05:40 +02:00
parent bf7213b768
commit 887f03f4f0

View File

@@ -1877,9 +1877,8 @@ def read_sizelimit(dir):
if os.path.exists(fname):
r = open(fname).readline()
if r and not r.isdigit():
if r is None or not r.isdigit():
return None
return int(r)
def read_inconflict(dir):