Private GIT

Skip to content
Snippets Groups Projects
Commit 9debf66d authored by Nic Wolfe's avatar Nic Wolfe
Browse files

Merge branch 'notification_fixes' of git://github.com/joshschreuder/Sick-Beard

parents cf5b2adb d6826984
Branches
Tags
No related merge requests found
...@@ -47,7 +47,7 @@ $(document).ready(function(){ ...@@ -47,7 +47,7 @@ $(document).ready(function(){
$('#testLibnotify').click(function(){ $('#testLibnotify').click(function(){
$('#testLibnotify-result').html(loading); $('#testLibnotify-result').html(loading);
$.get("$sbRoot/home/testLibnotify", $.get(sbRoot+"/home/testLibnotify",
function(message){ $('#testLibnotify-result').html(message); }); function(message){ $('#testLibnotify-result').html(message); });
}); });
......
...@@ -41,13 +41,12 @@ class NotifoNotifier: ...@@ -41,13 +41,12 @@ class NotifoNotifier:
"msg": msg, "msg": msg,
}) })
data = urllib.urlopen(apiurl, data)
try:
try: try:
data = urllib.urlopen(apiurl, data)
result = json.load(data) result = json.load(data)
except IOError: except IOError:
return False return False
finally:
data.close() data.close()
if result["status"] != "success" or result["response_message"] != "OK": if result["status"] != "success" or result["response_message"] != "OK":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment