We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0832a01 commit f42e4c7Copy full SHA for f42e4c7
ipinfo/details.py
@@ -14,10 +14,10 @@ def __getattr__(self, attr):
14
"""Return attribute if it exists in details array, else return error."""
15
if attr in self.details:
16
return self.details[attr]
17
- else:
18
- raise AttributeError(
19
- "{} is not a valid attribute of Details".format(attr)
20
- )
+
+ raise AttributeError(
+ f"{attr} is not a valid attribute of Details"
+ )
21
22
@property
23
def all(self):
0 commit comments