toxinu/Sublimall

"local variable 'r' referenced before assignment" when attempting to upload.

leonsbuddydave opened this issue · 1 comments

Error report:

Sublimall error report

Error while creating archive

=================================== Traceback ===================================
Traceback (most recent call last):
File "/home/mitchell/.config/sublime-text-3/Packages/Sublimall/sublimall/commands/upload_command.py", line 86, in get_max_package_size
proxies=self.get_proxies())
File "/home/mitchell/.config/sublime-text-3/Packages/Sublimall/sublimall/requests/api.py", line 88, in post
return request('post', url, data=data, *_kwargs)
File "/home/mitchell/.config/sublime-text-3/Packages/Sublimall/sublimall/requests/api.py", line 44, in request
return session.request(method=method, url=url, *_kwargs)
File "/home/mitchell/.config/sublime-text-3/Packages/Sublimall/sublimall/requests/sessions.py", line 422, in request
prep = self.prepare_request(req)
File "/home/mitchell/.config/sublime-text-3/Packages/Sublimall/sublimall/requests/sessions.py", line 360, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File "/home/mitchell/.config/sublime-text-3/Packages/Sublimall/sublimall/requests/models.py", line 294, in prepare
self.prepare_url(url, params)
File "/home/mitchell/.config/sublime-text-3/Packages/Sublimall/sublimall/requests/models.py", line 345, in prepare_url
"Perhaps you meant http://{0}?".format(url))
Sublimall.sublimall.requests.exceptions.MissingSchema: Invalid URL 'None': No schema supplied. Perhaps you meant http://None?

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/mitchell/.config/sublime-text-3/Packages/Sublimall/sublimall/commands/upload_command.py", line 59, in pack_and_send
self.send_to_api()
File "/home/mitchell/.config/sublime-text-3/Packages/Sublimall/sublimall/commands/upload_command.py", line 118, in send_to_api
max_package_size = self.get_max_package_size()
File "/home/mitchell/.config/sublime-text-3/Packages/Sublimall/sublimall/commands/upload_command.py", line 99, in get_max_package_size
self.api_max_package_size_url, r.status_code, err))

UnboundLocalError: local variable 'r' referenced before assignment

SublimeText version: 3059
7za path: /usr/bin/7za
Sublimall version: 0.0.19
Operating System: Linux-3.13.0-24-generic-x86_64-with-debian-jessie-sid

Please upgrade to 0.0.20.