Bugfix for defaultdict
authorSybren A. Stüvel <sybren@stuvel.eu>
Wed, 8 Nov 2017 09:36:11 +0000 (10:36 +0100)
committerSybren A. Stüvel <sybren@stuvel.eu>
Wed, 8 Nov 2017 09:36:11 +0000 (10:36 +0100)
svnman/exceptions.py

index 3a5f8dc..c98e7ca 100644 (file)
@@ -40,7 +40,7 @@ class RepoNotFound(RemoteError):
         return f'RepoNotFound({self.repo_id!r})'
 
 
-http_error_map = collections.defaultdict(RemoteError)
+http_error_map = collections.defaultdict(lambda: RemoteError)
 http_error_map.update({
     400: BadAPIRequest,
     500: InternalAPIServerError,