Преглед на файлове

ffpb: properly print ValueError

Helge Jung преди 9 години
родител
ревизия
6125c4f7c7
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      modules/ffpb.py

+ 1 - 1
modules/ffpb.py

@@ -235,7 +235,7 @@ def ffpb_updatealfred(bot):
 		alfred_update = updated
 
 	except ValueError as e:
-		print("Failed to parse ALFRED data ({0}): {1}".format(e.errno, e.strerror))
+		print("Failed to parse ALFRED data: " + str(e))
 		return
 
 def ffpb_alfred_data_outdated():