xlwings-utils 25.1.2__py3-none-any.whl → 25.1.2.post0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of xlwings-utils might be problematic. Click here for more details.
- xlwings_utils/xlwings_utils.py +8 -4
- {xlwings_utils-25.1.2.dist-info → xlwings_utils-25.1.2.post0.dist-info}/METADATA +1 -1
- xlwings_utils-25.1.2.post0.dist-info/RECORD +6 -0
- xlwings_utils-25.1.2.dist-info/RECORD +0 -6
- {xlwings_utils-25.1.2.dist-info → xlwings_utils-25.1.2.post0.dist-info}/WHEEL +0 -0
- {xlwings_utils-25.1.2.dist-info → xlwings_utils-25.1.2.post0.dist-info}/top_level.txt +0 -0
xlwings_utils/xlwings_utils.py
CHANGED
|
@@ -211,7 +211,10 @@ def write_dropbox(dropbox_path, contents):
|
|
|
211
211
|
"Content-Type": "application/octet-stream",
|
|
212
212
|
}
|
|
213
213
|
response = requests.post("https://content.dropboxapi.com/2/files/upload", headers=headers, data=contents)
|
|
214
|
-
|
|
214
|
+
try:
|
|
215
|
+
response.raise_for_status()
|
|
216
|
+
except requests.exceptions.HTTPError as e:
|
|
217
|
+
raise FileNotFoundError(f"file {str(dropbox_path)} could not be written. Original message is {e}") from None
|
|
215
218
|
|
|
216
219
|
|
|
217
220
|
def delete_from_dropbox(dropbox_path):
|
|
@@ -235,9 +238,10 @@ def delete_from_dropbox(dropbox_path):
|
|
|
235
238
|
data = {"path": str(dropbox_path)} # Path in Dropbox, starting with /
|
|
236
239
|
|
|
237
240
|
response = requests.post("https://api.dropboxapi.com/2/files/delete_v2", headers=headers, data=json.dumps(data))
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
+
try:
|
|
242
|
+
response.raise_for_status()
|
|
243
|
+
except requests.exceptions.HTTPError as e:
|
|
244
|
+
raise FileNotFoundError(f"file {str(dropbox_path)} could not be deleted. Original message is {e}") from None
|
|
241
245
|
|
|
242
246
|
|
|
243
247
|
def list_local(path, recursive=False, show_files=True, show_folders=False):
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
xlwings_utils/__init__.py,sha256=FdaRztevSu5akGL7KBUBRzqwLMRTdvVUuS2Kfp2f1Uc,68
|
|
2
|
+
xlwings_utils/xlwings_utils.py,sha256=IipMDWYm6HHC0y2Y_Pdu3RV3ppxMtmehWc7uyR4u47s,30753
|
|
3
|
+
xlwings_utils-25.1.2.post0.dist-info/METADATA,sha256=gy_t8BGvlv6EKJ9_pUEa8XahoaHBmWqGrLcLiM2myJM,12271
|
|
4
|
+
xlwings_utils-25.1.2.post0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
5
|
+
xlwings_utils-25.1.2.post0.dist-info/top_level.txt,sha256=kf5SEv0gZiRObPhUoYcc1O_iX_wwTOPeUIYvzyYeAM4,14
|
|
6
|
+
xlwings_utils-25.1.2.post0.dist-info/RECORD,,
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
xlwings_utils/__init__.py,sha256=FdaRztevSu5akGL7KBUBRzqwLMRTdvVUuS2Kfp2f1Uc,68
|
|
2
|
-
xlwings_utils/xlwings_utils.py,sha256=z-N00D0O_0LyhDOhpHuAI2Ddphig40-LpgWS9rOIr_c,30481
|
|
3
|
-
xlwings_utils-25.1.2.dist-info/METADATA,sha256=Kg-GSXueKT9vbNCTaX1EBt-4zB5k7JOHUezbhWBncMY,12265
|
|
4
|
-
xlwings_utils-25.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
5
|
-
xlwings_utils-25.1.2.dist-info/top_level.txt,sha256=kf5SEv0gZiRObPhUoYcc1O_iX_wwTOPeUIYvzyYeAM4,14
|
|
6
|
-
xlwings_utils-25.1.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|