Fixed bug with auto accept if dir doesn't exist
This commit is contained in:
parent
021ec52e3d
commit
0a54012cf5
2 changed files with 4 additions and 2 deletions
|
@ -951,7 +951,9 @@ class Profile(basecontact.BaseContact, Singleton):
|
|||
file_number)
|
||||
|
||||
elif auto:
|
||||
path = settings['auto_accept_path'] or curr_directory()
|
||||
path = settings['auto_accept_path']
|
||||
if not path or not os.path.exists(path):
|
||||
path = curr_directory()
|
||||
self.accept_transfer(None, path + '/' + file_name, friend_number, file_number, size)
|
||||
tm = TransferMessage(MESSAGE_OWNER['FRIEND'],
|
||||
time.time(),
|
||||
|
|
|
@ -5,7 +5,7 @@ import sys
|
|||
import re
|
||||
|
||||
|
||||
program_version = '0.4.3'
|
||||
program_version = '0.4.4'
|
||||
|
||||
|
||||
def cached(func):
|
||||
|
|
Loading…
Reference in a new issue