Set the except clause as a parenthesized tuple

This commit is contained in:
Joel Capitao 2020-09-15 15:50:41 +02:00 committed by Peter Hamilton
parent fe60ecf02d
commit 645cbf2ae9
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ if __name__ == '__main__':
for initial_date in initial_dates:
try:
t = time.strptime(initial_date)
except ValueError, TypeError:
except (ValueError, TypeError):
logger.error(
"Invalid initial date provided: {}".format(initial_date)
)