Commits

Marcin Kasperski  committed 853dd33

Moving style12 parsing exception to proper file.

  • Participants
  • Parent commits ac31121

Comments (0)

Files changed (2)

File src/mekk/fics/datatypes/style12.py

 from mekk.fics.datatypes.color import Color
 from mekk.fics.datatypes.game_clock import GameClock
 from mekk.fics.datatypes.player import PlayerName
-
-class BadStyle12Format(Exception):
-    """Failed to parse style12 string"""
-    pass
+from mekk.fics.errors import BadStyle12Format
 
 OBSERVER_WATCHING_ISOLATED_POSITION = -3
 OBSERVER_WATCHING_EXAMINE = -2

File src/mekk/fics/errors.py

             self, "Couldn't parse command {0:>s} output. Problematic text:\n{1:>s}".format(
                 command, troublesome_text))
 
+class BadStyle12Format(FicsClientException):
+    """Failed to parse style12 string"""
+    pass
+
 class FicsCommandExecutionException(FicsCommandException):
     """Exception thrown in case command output indicates failure
     (for example when we try to observe private game or attempt