{"action":"closed","issue":{"url":"https://api.github.com/repos/staticwebsync/staticwebsync/issues/1","repository_url":"https://api.github.com/repos/staticwebsync/staticwebsync","labels_url":"https://api.github.com/repos/staticwebsync/staticwebsync/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/staticwebsync/staticwebsync/issues/1/comments","events_url":"https://api.github.com/repos/staticwebsync/staticwebsync/issues/1/events","html_url":"https://github.com/staticwebsync/staticwebsync/issues/1","id":2687097,"number":1,"title":"Division by Zero exception","user":{"login":"simonluijk","id":63589,"avatar_url":"https://avatars.githubusercontent.com/u/63589?v=3","gravatar_id":"","url":"https://api.github.com/users/simonluijk","html_url":"https://github.com/simonluijk","followers_url":"https://api.github.com/users/simonluijk/followers","following_url":"https://api.github.com/users/simonluijk/following{/other_user}","gists_url":"https://api.github.com/users/simonluijk/gists{/gist_id}","starred_url":"https://api.github.com/users/simonluijk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonluijk/subscriptions","organizations_url":"https://api.github.com/users/simonluijk/orgs","repos_url":"https://api.github.com/users/simonluijk/repos","events_url":"https://api.github.com/users/simonluijk/events{/privacy}","received_events_url":"https://api.github.com/users/simonluijk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/staticwebsync/staticwebsync/labels/Fixed%20in%20next%20release","name":"Fixed in next release","color":"bfd4f2"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2011-12-30T07:11:21Z","updated_at":"2016-03-07T19:22:40Z","closed_at":"2016-03-07T19:22:40Z","body":"I get the following traceback on first run. On the second run it works well. Maybe\r\nbecause it's doing > 0.  ;)\r\n\r\nTraceback (most recent call last):\r\n  File \"~/.virtualenvs/sws/bin/sws\", line 8, in <module>\r\n    load\\_entry\\_point('staticwebsync==1.0.0', 'console\\_scripts', 'sws')()\r\n  File \"~/.virtualenvs/sws/lib/python2.7/site-packages/staticwebsync/sws.py\", line 103, in main\r\n    staticwebsync.setup(args)\r\n  File \"~/.virtualenvs/sws/lib/python2.7/site-packages/staticwebsync/\\_\\_init\\_\\_.py\", line 273, in setup\r\n    upload(filename)\r\n  File \"~/.virtualenvs/sws/lib/python2.7/site-packages/staticwebsync/\\_\\_init\\_\\_.py\", line 269, in upload\r\n    num\\_cb=progress\\_callback\\_divisions)\r\n  File \"~/.virtualenvs/sws/lib/python2.7/site-packages/boto/s3/key.py\", line 790, in set\\_contents\\_from\\_file\r\n    self.send\\_file(fp, headers, cb, num\\_cb, query\\_args)\r\n  File \"~/.virtualenvs/sws/lib/python2.7/site-packages/boto/s3/key.py\", line 583, in send\\_file\r\n    query\\_args=query\\_args)\r\n  File \"~/.virtualenvs/sws/lib/python2.7/site-packages/boto/s3/connection.py\", line 429, in make\\_request\r\n    override\\_num\\_retries=override\\_num\\_retries)\r\n  File \"~/.virtualenvs/sws/lib/python2.7/site-packages/boto/connection.py\", line 796, in make\\_request\r\n    return self.\\_mexe(http\\_request, sender, override\\_num\\_retries)\r\n  File \"~/.virtualenvs/sws/lib/python2.7/site-packages/boto/connection.py\", line 717, in \\_mexe\r\n    request.body, request.headers)\r\n  File \"~/.virtualenvs/sws/lib/python2.7/site-packages/boto/s3/key.py\", line 509, in sender\r\n    cb(total\\_bytes, self.size)\r\n  File \"~/.virtualenvs/sws/lib/python2.7/site-packages/staticwebsync/sws.py\", line 21, in \\_\\_call\\_\\_\r\n    progress = float(done) / doing\r\nZeroDivisionError: float division by zero"}}