mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
fix issue when incomplete download directory doesn't exist. fixes #1306
This commit is contained in:
parent
d7b44659cf
commit
70e2f5c46d
1 changed files with 3 additions and 1 deletions
|
@ -148,7 +148,9 @@ def par2(dirname):
|
|||
newlist = []
|
||||
sofar = 0
|
||||
parfile = ""
|
||||
objects = os.listdir(dirname)
|
||||
objects = []
|
||||
if os.path.exists(dirname):
|
||||
objects = os.listdir(dirname)
|
||||
for item in objects:
|
||||
if item.endswith(".par2"):
|
||||
size = os.path.getsize(os.path.join(dirname, item))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue