Check if wikipedia module had an error. - annna - Annna the nice friendly bot.
(HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit e884cc5206617ce8dc13d3e6f19fb51a5fada955
(DIR) parent 6bac3a1793e1ab9b970b7595f4cb7d523dcd15e0
(HTM) Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Mon, 10 Apr 2023 15:55:48 +0200
Check if wikipedia module had an error.
Diffstat:
M wikipediagame | 4 ++++
1 file changed, 4 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/wikipediagame b/wikipediagame
@@ -57,6 +57,10 @@ def main(args):
newtitle = 1
printsummary = 1
+ if len(title) == 0:
+ print("There is no game started. Please run init.")
+ return 1
+
if newtitle == 1:
titlefd = open(titlepath, "w+")
json.dump(title, titlefd)