]> git.parisson.com Git - pdf.js.git/commitdiff
Fix wrong exception throwing syntax.
authorRob Sayre <sayrer@gmail.com>
Sun, 10 Jul 2011 14:54:19 +0000 (07:54 -0700)
committerRob Sayre <sayrer@gmail.com>
Sun, 10 Jul 2011 14:54:19 +0000 (07:54 -0700)
test/test.py

index 59c10bdffc68db226fa887e4e8f39807763abcdf..b61ba816ba5cb0b97c91d09eb5b5c6290c1a17a4 100644 (file)
@@ -189,7 +189,7 @@ class BaseBrowserCommand(object):
             self._fixupMacPath()
 
         if not os.path.exists(self.path):
-            throw("Path to browser '%s' does not exist." % self.path)
+            raise Exception("Path to browser '%s' does not exist." % self.path)
 
     def setup(self):
         self.tempDir = tempfile.mkdtemp()