Skip to content

Commit

Permalink
Merge pull request #2961 from rebeccacremona/wr-correct-import
Browse files Browse the repository at this point in the history
Correct import to remove deprecation warning.
  • Loading branch information
bensteinberg committed Jul 22, 2021
2 parents bd108b6 + e5b483d commit 0c6c591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/docker/webrecorder/contentcontroller.py
Expand Up @@ -873,7 +873,7 @@ def handle_routing(self, wb_url, user, coll_name, rec_name, type,

except WbException as ue:
# BEGIN PERMA CUSTOMIZATIONS
from collections import Mapping
from collections.abc import Mapping
if isinstance(ue.msg, Mapping):
msg = ue.msg.get('error')
elif isinstance(ue.msg, str):
Expand Down

0 comments on commit 0c6c591

Please sign in to comment.