From 0c6d29649a7972c29a7423a98a1c44731cab3a30 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 14 Oct 2016 22:58:53 +0200 Subject: [PATCH] exception exceptoajivsdifkmvki --- bot.py | 5 ++++- sm | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index b7a0f7fa..fc9ac424 100644 --- a/bot.py +++ b/bot.py @@ -437,7 +437,10 @@ def balurage(): print("@" + username + ": /balurage") # Rispondi commentando l'E3. tosend = str() - ragelevel = int(filemanager.readfile("ragelevel.txt")) + try: + ragelevel = int(filemanager.readfile("ragelevel.txt")) + except ValueError: + ragelevel = 0 ragelevel += 1 filemanager.writefile("ragelevel.txt", ragelevel) for rage in range(0, ragelevel): diff --git a/sm b/sm index 4780999b..6b3b2c53 160000 --- a/sm +++ b/sm @@ -1 +1 @@ -Subproject commit 4780999b7de8f2303a29da263280d33c41d485b9 +Subproject commit 6b3b2c53822aaa2391f3bb131e24453c910310e8