mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 06:46:15 +01:00
- fixed read_sizelimit()
This commit is contained in:
parent
bf7213b768
commit
887f03f4f0
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user