mirror of
https://abf.rosa.ru/djam/repo-analyzer.git
synced 2025-02-23 10:02:54 +00:00
Fix repository lookup error
This commit is contained in:
parent
21a5ec6090
commit
c740f87c67
1 changed files with 2 additions and 2 deletions
|
@ -44,8 +44,8 @@ def main(args):
|
|||
rid = c.execute("""
|
||||
SELECT id FROM repodirs WHERE name = ? OR path = ?
|
||||
""", [repo, repo]).fetchall()
|
||||
if rid is None:
|
||||
print 'Repository "%" not found.' % repo
|
||||
if not rid:
|
||||
print 'Repository "%s" not found.' % repo
|
||||
exit(1)
|
||||
repodirs.append(rid[0][0])
|
||||
if not repodirs:
|
||||
|
|
Loading…
Add table
Reference in a new issue