home · contact · privacy
Server/py: Improve docstring.
[plomrogue] / plomrogue-server.py
index 6b2a20a8878822479662b7194e38014e1a7b60a8..bcd985d22b6929c7605c5148ab1edf64ea14b537 100755 (executable)
@@ -46,7 +46,7 @@ def cleanup_server_io(io_db):
 
 
 def detect_atomic_leftover(path):
-    """Raise HandledException if file is found at path + "_tmp"."""
+    """Raise explained HandledException if file is found at path + "_tmp"."""
     path_tmp = path + "_tmp"
     msg = "Found file '" + path_tmp + "' that may be a leftover from an " \
           "aborted previous attempt to write '" + path + "'. Aborting until " \
@@ -74,7 +74,7 @@ except HandledException as exception:
     print("Error:")
     print(exception.args[0])
 except:
-    print("SOMETHING WENT WRONG\n")
+    print("SOMETHING WENT WRONG IN UNEXPECTED WAYS")
     raise
 finally:
     cleanup_server_io(io_db)