diff --git a/moto/s3/utils.py b/moto/s3/utils.py index 50ff1cf34..e22b6b860 100644 --- a/moto/s3/utils.py +++ b/moto/s3/utils.py @@ -104,9 +104,7 @@ class _VersionedKeyStore(dict): def get(self, key, default=None): try: return self[key] - except (KeyError, IndexError) as e: - print("Error retrieving " + str(key)) - print(e) + except (KeyError, IndexError): pass return default