O365 / python-o365

A simple python library to interact with Microsoft Graph and Office 365 API
Apache License 2.0
1.65k stars 419 forks source link

Version 2.0.30; TypeError in Zoneinfo call #1007

Closed CMNLO closed 1 year ago

CMNLO commented 1 year ago

for all my scripts that use O365 I get the following error:

" 434 if isinstance(date_time_time_zone, dict): 435 try: --> 436 timezone = zoneinfo.ZoneInfo( 437 name=get_iana_tz(date_time_time_zone.get(self._cc('timeZone'), 'UTC'))) 438 except ZoneInfoNotFoundError: 439 timezone = local_tz

TypeError: function missing required argument 'key' (pos 1)"

I believe "name" should be "key"

alejcas commented 1 year ago

Fixed in 2.0.31

CMNLO commented 1 year ago

Thank you for the quick fix! Seems to work fine again.