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
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@ $(document).ready(function(){
$('#testLibnotify').click(function(){
$('#testLibnotify-result').html(loading);
$.get("$sbRoot/home/testLibnotify",
$.get(sbRoot+"/home/testLibnotify",
function(message){ $('#testLibnotify-result').html(message); });
});
......
......@@ -41,13 +41,12 @@ class NotifoNotifier:
"msg": msg,
})
data = urllib.urlopen(apiurl, data)
try:
try:
data = urllib.urlopen(apiurl, data)
result = json.load(data)
except IOError:
return False
finally:
data.close()
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