release the lockfile before exiting when using --rss-sections option. fixes #47
This commit is contained in:
parent
15415e369a
commit
f47618dfe2
|
@ -98,9 +98,11 @@ class Main:
|
|||
if clioptions.rsssections:
|
||||
if entries:
|
||||
print('The following sections are available in this RSS feed: {}'.format([j for j in entries[0]]))
|
||||
sys.exit(0)
|
||||
else:
|
||||
sys.exit('Could not parse the section of the rss feed')
|
||||
print('Could not parse the section of the rss feed')
|
||||
# release the lock file
|
||||
lockfile.release()
|
||||
sys.exit(0)
|
||||
# sort entries and check if they were not previously sent
|
||||
totweet = sort_entries(clioptions.all, cache, entries)
|
||||
for entry in totweet:
|
||||
|
|
Loading…
Reference in a new issue