Skip to content

Commit

Permalink
fix '--exclude' option. formatting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Junker committed Jul 31, 2021
1 parent ab630db commit eed4dcb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions davesync.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ def encrypt_file(path):
extra_args=['--compress-algo', args.compress_algo,
'-z', args.compress_level,
'--set-filename', os.path.basename(path)])


f.close()

if not res:
Expand Down Expand Up @@ -92,7 +90,7 @@ def create_logger():

def excluded_path(path):
for rgx in excluded_rgxs:
if rgx.search(path):
if rgx.match(path):
return True
return False

Expand Down Expand Up @@ -167,7 +165,9 @@ def upload_metadata(metadata):
gpg = gnupg.GPG()

try:
webdav = Client(remote_base, auth=(args.webdav_user, webdav_password) if args.webdav_user != None else None, verify=not args.no_check_certificate, timeout=args.timeout)
webdav = Client(remote_base, auth=(args.webdav_user, webdav_password) if args.webdav_user != None else None,
verify=not args.no_check_certificate,
timeout=args.timeout)
webdav.info('')
except BaseException as err:
logger.critical(f'WebDav error: {err}')
Expand Down

0 comments on commit eed4dcb

Please sign in to comment.