summaryrefslogtreecommitdiff
path: root/check.py
diff options
context:
space:
mode:
authorPanFritz <redstonenoobpan@gmail.com>2015-01-09 20:47:29 +0100
committerPanFritz <redstonenoobpan@gmail.com>2015-01-09 20:47:29 +0100
commit02bf56bf4aa5331d5aae1785950b12a586482c76 (patch)
tree3374db15d3e15295e6f279d8e445640ca68acf96 /check.py
parent2295350be6a57f76ec3a7958f0053626f79cac80 (diff)
Added try except to str converion
Diffstat (limited to 'check.py')
-rw-r--r--check.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/check.py b/check.py
index a9087f9..5822011 100644
--- a/check.py
+++ b/check.py
@@ -34,7 +34,10 @@ def get_last_seen(player):
def get_website_data(player):
conn = zxJDBC.connect(mysql_database, mysql_user, mysql_pass, "com.mysql.jdbc.Driver")
curs = conn.cursor()
- uuid = str(uid(player)).replace("-", "")
+ try:
+ uuid = str(uid(player)).replace("-", "")
+ except:
+ print"failed to convert to string"
try:
curs.execute("SELECT DISTINCT `id`, `email` FROM users WHERE `uuid` = (?) LIMIT 1", (uuid,))
except: