Merge pull request #9 from lbryio/master

Update
This commit is contained in:
Dave-A 2016-08-26 10:16:46 -04:00 committed by GitHub
commit 18310632eb
5 changed files with 13 additions and 6 deletions

View file

@ -1,8 +1,7 @@
[bumpversion]
current_version = 0.3.21
current_version = 0.3.22
commit = True
tag = True
message = Bump version: {current_version} -> {new_version}
[bumpversion:file:lbrynet/__init__.py]

View file

@ -1,2 +1,2 @@
__version__ = "0.3.21"
__version__ = "0.3.22"
version = tuple(__version__.split('.'))

View file

@ -426,7 +426,7 @@ class LBRYDaemon(jsonrpc.JSONRPC):
except jsonrpclib.Fault, f:
self._cbRender(f, request, id, version)
else:
request.setHeader("Access-Control-Allow-Origin", "*")
request.setHeader("Access-Control-Allow-Origin", "localhost")
request.setHeader("content-type", "text/json")
if args == [{}]:
d = defer.maybeDeferred(function)

View file

@ -380,9 +380,17 @@ class LBRYFileUpload(resource.Resource):
if os.name == "nt":
shutil.copy(uploaded_file.name, newpath)
# TODO Still need to remove the file
# TODO deal with pylint error in cleaner fashion than this
try:
from exceptions import WindowsError as win_except
except ImportError as e:
log.error("This shouldn't happen")
win_except = Exception
try:
os.remove(uploaded_file.name)
except WindowsError as e:
except win_except as e:
pass
else:
shutil.move(uploaded_file.name, newpath)

View file

@ -1,5 +1,5 @@
[Desktop Entry]
Version=0.3.21
Version=0.3.22
Name=LBRY
Comment=The world's first user-owned content marketplace
Icon=lbry