Fix 'NoneType' object is not subscriptable

Signed-off-by: Aravind Nair <22199259+aravindvnair99@users.noreply.github.com>
This commit is contained in:
Aravind Nair
2021-04-09 02:52:31 +05:30
parent f4c156e1e6
commit c59d497f95

View File

@@ -241,7 +241,8 @@ def generate_commit_list(tz):
if weekday == "Sunday": if weekday == "Sunday":
Sunday += 1 Sunday += 1
except Exception as ex: except Exception as ex:
print("Please Ignore this exception " + str(ex)) if str(ex) != "'NoneType' object is not subscriptable":
print("Exception occurred " + str(ex))
sumAll = morning + daytime + evening + night sumAll = morning + daytime + evening + night
sum_week = Sunday + Monday + Tuesday + Friday + Saturday + Wednesday + Thursday sum_week = Sunday + Monday + Tuesday + Friday + Saturday + Wednesday + Thursday