Skip to content

Commit

Permalink
fix: make regexp a raw string
Browse files Browse the repository at this point in the history
So I don't have to escape the \s sequences.
  • Loading branch information
rouilj committed Dec 24, 2023
1 parent f52ad10 commit 1f05c65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roundup/backends/back_postgresql.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def get_database_name(config):
#
# with suitable quoting but ... really.
search = re.search(
'FATAL:\s+database\s+"([^"\s]*)"\s+does\s+not\s+exist',
r'FATAL:\s+database\s+"([^"\s]*)"\s+does\s+not\s+exist',
message.args[0])
if search:
dbname = search.groups()[0]
Expand Down

0 comments on commit 1f05c65

Please sign in to comment.