Index: /trunk/Nebulous-Server/Changes
===================================================================
--- /trunk/Nebulous-Server/Changes	(revision 17649)
+++ /trunk/Nebulous-Server/Changes	(revision 17650)
@@ -2,4 +2,5 @@
 
 0.10
+    - change Nebulous::Server::stat() to not die when passed a non-existant key
     - change listxattr_object() to return an arrayref
     - change default log level to 'WARN'
Index: /trunk/Nebulous-Server/lib/Nebulous/Server.pm
===================================================================
--- /trunk/Nebulous-Server/lib/Nebulous/Server.pm	(revision 17649)
+++ /trunk/Nebulous-Server/lib/Nebulous/Server.pm	(revision 17650)
@@ -1,5 +1,5 @@
 # Copyright (c) 2004-2008  Joshua Hoblitt
 #
-# $Id: Server.pm,v 1.66 2008-05-10 01:15:13 jhoblitt Exp $
+# $Id: Server.pm,v 1.67 2008-05-13 03:55:08 jhoblitt Exp $
 
 package Nebulous::Server;
@@ -1076,7 +1076,4 @@
         {
             type        => SCALAR,
-            callbacks   => {
-                'is valid object key' => sub { $self->_is_valid_object_key($_[0]) },
-            },
         },
     );
@@ -1087,4 +1084,7 @@
 
     $log->debug("entered - @_");
+
+    # does this key exist?
+    return unless ($self->_is_valid_object_key($key));
 
     # ignore volume
Index: /trunk/Nebulous-Server/t/09_server_stat_object.t
===================================================================
--- /trunk/Nebulous-Server/t/09_server_stat_object.t	(revision 17649)
+++ /trunk/Nebulous-Server/t/09_server_stat_object.t	(revision 17650)
@@ -3,5 +3,5 @@
 # Copryight (C) 2004-2005  Joshua Hoblitt
 #
-# $Id: 09_server_stat_object.t,v 1.13 2008-03-20 21:10:14 jhoblitt Exp $
+# $Id: 09_server_stat_object.t,v 1.14 2008-05-13 03:55:08 jhoblitt Exp $
 
 use strict;
@@ -49,8 +49,8 @@
 Test::Nebulous->setup;
 
-eval {
-    $neb->stat_object("foo");
-};
-like($@, qr/is valid object key/, "object does not exist");
+{
+    my $stat = $neb->stat_object("foo");
+    is($stat, undef, "object does not exist");
+}
 
 Test::Nebulous->setup;
