Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
edekeijzer committed Apr 6, 2021
1 parent 758e1f1 commit ed86767
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions octoprint_webdavbackup/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
import math
import logging
from webdav3.client import Client
from webdav3.exceptions import WebDavException,ResponseErrorCode,RemoteResourceNotFound
from webdav3.exceptions import WebDavException, ResponseErrorCode, RemoteResourceNotFound, RemoteParentNotFound
# import webdav3.exceptions
from datetime import datetime
from http import HTTPStatus
import octoprint.plugin
Expand Down Expand Up @@ -204,7 +205,12 @@ def _recursive_create_path(path):
if skip_path_check:
do_upload = True
else:
do_upload = _recursive_create_path(upload_path)
self._logger.debug("We are going to recursively check " + upload_path)
try:
_recursive_create_path(upload_path)
do_upload = True
except:
do_upload = False

if do_upload:
try:
Expand Down

0 comments on commit ed86767

Please sign in to comment.