Commit 80efd753 authored by Harald Sitter's avatar Harald Sitter 🏳️‍🌈
Browse files

sub is part of re not a member of string

parent c3b1fc3a
Pipeline #207355 passed with stage
in 3 minutes and 5 seconds
......@@ -34,7 +34,7 @@ if os.getenv('DRKONQI_WITH_SENTRY'):
def mangle_path(path):
if not path:
return path
return path.sub(str(Path.home()), "$HOME")
return re.sub(str(Path.home()), "$HOME", path, count=1)
class SentryQMLThread:
def __init__(self):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment