[pypy-svn] r28800 - in pypy/dist/pypy/translator/js/proxy: . testme

ericvrp at codespeak.net ericvrp at codespeak.net
Thu Jun 15 10:30:39 CEST 2006


Author: ericvrp
Date: Thu Jun 15 10:30:38 2006
New Revision: 28800

Modified:
   pypy/dist/pypy/translator/js/proxy/dev.cfg
   pypy/dist/pypy/translator/js/proxy/testme/servermessage.py
Log:
typos and small fix


Modified: pypy/dist/pypy/translator/js/proxy/dev.cfg
==============================================================================
--- pypy/dist/pypy/translator/js/proxy/dev.cfg	(original)
+++ pypy/dist/pypy/translator/js/proxy/dev.cfg	Thu Jun 15 10:30:38 2006
@@ -26,7 +26,7 @@
 
 # Some server parameters that you may want to tweak
 server.socketPort=8080
-server.socketHost="127.0.0.1"
+#server.socketHost="127.0.0.1"
 
 # Disable the debug output at the end on pages.
 logDebugInfoFilter.on = False 

Modified: pypy/dist/pypy/translator/js/proxy/testme/servermessage.py
==============================================================================
--- pypy/dist/pypy/translator/js/proxy/testme/servermessage.py	(original)
+++ pypy/dist/pypy/translator/js/proxy/testme/servermessage.py	Thu Jun 15 10:30:38 2006
@@ -52,7 +52,11 @@
         #log('RECEIVED:%s(%d)' % (values[0], len(values[1:])))
         fn = self.MESSAGES.get(values[0])
         if fn:
-            return fn(self, *values[1:])
+            try:
+                return fn(self, *values[1:])
+            except BitmapCreationException, e:
+                log(str(e))
+                return dict()
         else:
             log("UNKNOWN:%s" % str(values))
             return dict(type='unknown', values=values)
@@ -104,7 +108,7 @@
                 bitmap = PIL.Image.open(bitmap_filename)
             except IOError, e:
                 raise BitmapCreationException('ERROR LOADING %s (%s)' % (
-                    bitmap_flename, str(e)))
+                    bitmap_filename, str(e)))
             try:
                 bitmap.save(gif_bitmap_filename)
                 log('SAVED:%s' % gif_bitmap_filename)



More information about the Pypy-commit mailing list