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

Error when exporting manually created files that are incomplete #11

Open
cmmndy opened this issue Mar 30, 2016 · 1 comment
Open

Error when exporting manually created files that are incomplete #11

cmmndy opened this issue Mar 30, 2016 · 1 comment

Comments

@cmmndy
Copy link

cmmndy commented Mar 30, 2016

I get an an error when extracting the downloaded zip file of a manually created event, where I (for example) forgot to add the event type. The downloaded zip file is then empty and unzipping it will not work. A simple workaround that does the trick for me (i.e. it ignores these cases) would be to add
if os.stat(data_filename).st_size > 0:
in line 300, before unzipping the file. Of course, it then completely ignores the file, but it will continue the bulk export.

@ebrensi
Copy link

ebrensi commented May 8, 2016

I added this fix to my fork
https://github.com/ebrensi/garmin-connect-export.git

of the project, which is a pending pull request #15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants