diff --git a/Network/AWS/AWSConnection.hs b/Network/AWS/AWSConnection.hs
--- a/Network/AWS/AWSConnection.hs
+++ b/Network/AWS/AWSConnection.hs
@@ -55,5 +55,5 @@
                   ( _, "", "") -> Nothing
                   ( _, "",  _) -> Just (amazonS3Connection ak sk1)
                   ( _,  _,  _) -> Just (amazonS3Connection ak sk0)
-    where getEnvKey s = catch (getEnv s) (const $ return "")
+    where getEnvKey s = fmap (maybe "" id . lookup s) getEnvironment
 
diff --git a/hS3.cabal b/hS3.cabal
--- a/hS3.cabal
+++ b/hS3.cabal
@@ -1,5 +1,5 @@
 Name:           hS3
-Version:        0.5.6
+Version:        0.5.7
 License:        BSD3
 License-file:   LICENSE
 Cabal-Version: >= 1.6
