Commits

Katsunori FUJIWARA committed 4ec5c8a

use BaseException instead of old-style str to raise exception

  • Participants
  • Parent commits 2ce05c2

Comments (0)

Files changed (2)

             break
     else:
         if 0 != len(line):
-            raise 'unexpected line: %s' % line
+            raise BaseException('unexpected line: %s' % line)
 
         if 0 == len(infostock[0]):
             continue
 ####################
 
 def undefined_state(value):
-    raise 'unexpected invocation:%d: %s' % (lineno, value)
+    raise BaseException('unexpected invocation:%d: %s' % (lineno, value))
 
 def wait_msgid(value):
     if 0 != len(value):
             break
     else:
         if 0 != len(line):
-            raise 'unexpected line: %s' % line
+            raise BaseException('unexpected line: %s' % line)
 
         if 0 == len(infostock[0]):
             return