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:
@@ -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):
|
||||
|
Reference in New Issue
Block a user