summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-06 17:39:56 +0100
committerChristian Poessinger <christian@poessinger.com>2021-01-06 17:39:56 +0100
commitc1e38c5cde9dd6467c8226df12262d63fc6115bb (patch)
tree6d8d6d7ea84a48c15794a90b5045ad3045403191
parent9f33a14ac2a2e85da16b3169465155ca6114d09e (diff)
downloadvyos-1x-c1e38c5cde9dd6467c8226df12262d63fc6115bb.tar.gz
vyos-1x-c1e38c5cde9dd6467c8226df12262d63fc6115bb.zip
ifconfig.interface: use Python3 f-ormat string
-rw-r--r--python/vyos/ifconfig/interface.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/ifconfig/interface.py b/python/vyos/ifconfig/interface.py
index 35a964110..4c05ac613 100644
--- a/python/vyos/ifconfig/interface.py
+++ b/python/vyos/ifconfig/interface.py
@@ -265,7 +265,7 @@ class Interface(Control):
# If we can not connect to the interface then let the caller know
# as the class could not be correctly initialised
else:
- raise Exception('interface "{}" not found'.format(self.config['ifname']))
+ raise Exception(f'interface "{ifname}" not found!')
# temporary list of assigned IP addresses
self._addr = []