Skip to content

Commit d7af1be

Browse files
authored
Merge pull request #621 from rhubert/fix-archive-exception
cmds/archive: fix lost exception
2 parents ff00921 + 8c1f7b8 commit d7af1be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pym/bob/cmds/archive.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ def __exit__(self, *exc):
7777
return False
7878

7979
def scan(self, verbose):
80+
found = False
8081
try:
81-
found = False
8282
self.__db.execute("BEGIN")
8383
for l1 in os.listdir("."):
8484
if not self.__dirSchema.fullmatch(l1): continue
@@ -98,7 +98,7 @@ def scan(self, verbose):
9898
print("Your archive seems to be empty. "
9999
"Are you running 'bob archive' from within the correct directory?",
100100
file=sys.stderr)
101-
return found
101+
return found
102102

103103
def __scan(self, fileName, verbose):
104104
try:

0 commit comments

Comments
 (0)