izihawa-loglib 1.1.13__tar.gz → 1.1.14__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: izihawa_loglib
3
- Version: 1.1.13
3
+ Version: 1.1.14
4
4
  Summary: Izihawa log utilities
5
5
  Author: Pasha Podolsky
6
6
  Author-email: ppodolsky@me.com
@@ -18,7 +18,12 @@ class RequestContext:
18
18
  )
19
19
 
20
20
  def __getattr__(self, name: str) -> Any:
21
- return self.default_fields[name]
21
+ try:
22
+ return self.default_fields[name]
23
+ except KeyError:
24
+ classname = type(self).__name__
25
+ msg = f'{classname!r} object has no attribute {name!r}'
26
+ raise AttributeError(msg)
22
27
 
23
28
  @staticmethod
24
29
  def generate_request_id(length):
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "izihawa_loglib"
3
- version = "1.1.13"
3
+ version = "1.1.14"
4
4
  description = "Izihawa log utilities"
5
5
  authors = ["Pasha Podolsky <ppodolsky@me.com>"]
6
6
  readme = "README.md"