Fix unbound `exc` in babel.dates by akx · Pull Request #959 · python-babel/babel

@akx

@akx

@akx akx enabled auto-merge (squash)

January 25, 2023 19:41

@codecov

DenverCoder1

Comment on lines +249 to +250

except pytz.UnknownTimeZoneError as e:
exc = e

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the variable is not used, can't it be removed?

except pytz.UnknownTimeZoneError as e:
exc = e
except pytz.UnknownTimeZoneError:
pass

@akx akx deleted the unbound-exc branch

December 12, 2023 12:57