Fix UnboundLocalError in autobrew.py

This commit is contained in:
James R. Barlow
2017-03-13 15:51:39 -07:00
parent 107f6abcb1
commit 35162166c5
+1 -1
View File
@@ -62,7 +62,7 @@ def main():
# Remove the duplicate "ocrmypdf" resource block
all_resources = poet_resources.split('resource')
kept_resources = [block for block in resources if 'ocrmypdf' not in block]
kept_resources = [block for block in all_resources if 'ocrmypdf' not in block]
resources = 'resource'.join(kept_resources)
with open('ocrmypdf.rb', 'w') as out: