Skip to content

Commit e660d25

Browse files
committed
ContentEncodingError is removed for python3.13 -> replace with except Exception: (maybe some additional logic is needed for pass and more strict Exception class )
1 parent caaf0d2 commit e660d25

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mfr/providers/osf/provider.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import furl
99
import aiohttp
10-
from aiohttp.errors import ContentEncodingError
1110

1211
from waterbutler.core import streams
1312

@@ -92,7 +91,7 @@ async def metadata(self):
9291

9392
try:
9493
metadata = {'data': json.loads(response_headers['x-waterbutler-metadata'])['attributes']}
95-
except ContentEncodingError:
94+
except Exception:
9695
pass # hack: aiohttp tries to unzip empty body when Content-Encoding is set
9796

9897
self.metrics.add('metadata.raw', metadata)

0 commit comments

Comments
 (0)