Fix DeprecationWarning: invalid escape sequence. Fixes https://github.com/GNS3/gns3-gui/issues/2670

This commit is contained in:
grossmj committed 2019-01-17 18:01:58 +07:00
1 parent 4b52e9313e
commit 456ef1348b
9 files changed
+23 -23

No files matched your search

+1 -1
View File
@@ -637,7 +637,7 @@ class BaseNode:
try:
await self._ubridge_send(cmd)
except UbridgeError as e:
match = re.search("Cannot compile filter '(.*)': syntax error", str(e))
match = re.search(r"Cannot compile filter '(.*)': syntax error", str(e))
if match:
message = "Warning: ignoring BPF packet filter '{}' due to syntax error".format(self.name, match.group(1))
log.warning(message)