commit
18310632eb
5 changed files with 13 additions and 6 deletions
|
@ -1,8 +1,7 @@
|
||||||
[bumpversion]
|
[bumpversion]
|
||||||
current_version = 0.3.21
|
current_version = 0.3.22
|
||||||
commit = True
|
commit = True
|
||||||
tag = True
|
tag = True
|
||||||
message = Bump version: {current_version} -> {new_version}
|
|
||||||
|
|
||||||
[bumpversion:file:lbrynet/__init__.py]
|
[bumpversion:file:lbrynet/__init__.py]
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
__version__ = "0.3.21"
|
__version__ = "0.3.22"
|
||||||
version = tuple(__version__.split('.'))
|
version = tuple(__version__.split('.'))
|
|
@ -426,7 +426,7 @@ class LBRYDaemon(jsonrpc.JSONRPC):
|
||||||
except jsonrpclib.Fault, f:
|
except jsonrpclib.Fault, f:
|
||||||
self._cbRender(f, request, id, version)
|
self._cbRender(f, request, id, version)
|
||||||
else:
|
else:
|
||||||
request.setHeader("Access-Control-Allow-Origin", "*")
|
request.setHeader("Access-Control-Allow-Origin", "localhost")
|
||||||
request.setHeader("content-type", "text/json")
|
request.setHeader("content-type", "text/json")
|
||||||
if args == [{}]:
|
if args == [{}]:
|
||||||
d = defer.maybeDeferred(function)
|
d = defer.maybeDeferred(function)
|
||||||
|
|
|
@ -380,9 +380,17 @@ class LBRYFileUpload(resource.Resource):
|
||||||
if os.name == "nt":
|
if os.name == "nt":
|
||||||
shutil.copy(uploaded_file.name, newpath)
|
shutil.copy(uploaded_file.name, newpath)
|
||||||
# TODO Still need to remove the file
|
# 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:
|
try:
|
||||||
os.remove(uploaded_file.name)
|
os.remove(uploaded_file.name)
|
||||||
except WindowsError as e:
|
except win_except as e:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
shutil.move(uploaded_file.name, newpath)
|
shutil.move(uploaded_file.name, newpath)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Version=0.3.21
|
Version=0.3.22
|
||||||
Name=LBRY
|
Name=LBRY
|
||||||
Comment=The world's first user-owned content marketplace
|
Comment=The world's first user-owned content marketplace
|
||||||
Icon=lbry
|
Icon=lbry
|
||||||
|
|
Loading…
Reference in a new issue