Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Onedrive domain ending in .us instead of .com #1810

jreyenga opened this issue Feb 5, 2022 · 0 comments · Fixed by #1811

Onedrive domain ending in .us instead of .com #1810

jreyenga opened this issue Feb 5, 2022 · 0 comments · Fixed by #1811


Copy link

jreyenga commented Feb 5, 2022

OS (e.g. Windows 10 or macOS Sierra)

Windows 10

Versions of xlwings, Excel and Python (e.g. 0.11.8, Office 365, Python 3.7)

0.26.1, Excel version 2201, Python 3.8.8

Describe your issue (incl. Traceback!)

Cannot run xlwings python code in folders synched to onedrive. However our commercial onedrive domain is of the form NOT .com

After modifying line 452 in to:
pattern = re.compile(r'https://[^-][^/]/[^/]/[^/]/(.*)')

I was able to get it to work in our environment. I don't have a code snippet for handling .com AND .us domains, but hopefully that is enough for an easy drop in solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Archived in project

Successfully merging a pull request may close this issue.

2 participants