Extended error message

This commit is contained in:
Simon Beginn 2021-10-13 12:55:16 +02:00
parent 4a7376f17b
commit 3fe2b45f72
No known key found for this signature in database
GPG key ID: 033A4D4CE4E063D6

View file

@ -130,7 +130,7 @@ class kmsBase:
local_dt = requestDatetime
except ImportError:
pretty_printer(log_obj = loggersrv.warning,
put_text = "{reverse}{yellow}{bold}Module 'tzlocal' not available ! Request time not localized.{end}")
put_text = "{reverse}{yellow}{bold}Module 'tzlocal' or 'pytz' not available ! Request time not localized.{end}")
local_dt = requestDatetime
except Exception as e:
# Just in case something else goes wrong