You've already forked wakapi-readme-stats
Fix 'NoneType' object is not subscriptable
Signed-off-by: Aravind Nair <22199259+aravindvnair99@users.noreply.github.com>
This commit is contained in:
7
main.py
7
main.py
@@ -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
|
||||||
@@ -416,7 +417,7 @@ def get_short_info(github):
|
|||||||
else:
|
else:
|
||||||
string += "> 🚫 " + translate["Not Opted to Hire"] + "\n > \n"
|
string += "> 🚫 " + translate["Not Opted to Hire"] + "\n > \n"
|
||||||
|
|
||||||
string += '> 📜 '
|
string += '> 📜 '
|
||||||
string += translate['public repositories'] % public_repo + " " + '\n > \n' if public_repo != 1 else translate['public repository'] % public_repo + " " + '\n > \n'
|
string += translate['public repositories'] % public_repo + " " + '\n > \n' if public_repo != 1 else translate['public repository'] % public_repo + " " + '\n > \n'
|
||||||
string += '> 🔑 '
|
string += '> 🔑 '
|
||||||
string += translate['private repositories'] % private_repo + " " +' \n > \n' if private_repo != 1 else translate['private repository'] % private_repo + " " + '\n > \n'
|
string += translate['private repositories'] % private_repo + " " +' \n > \n' if private_repo != 1 else translate['private repository'] % private_repo + " " + '\n > \n'
|
||||||
@@ -462,7 +463,7 @@ def get_stats(github):
|
|||||||
|
|
||||||
# def star_me():
|
# def star_me():
|
||||||
# requests.put("https://api.github.com/user/starred/anmol098/waka-readme-stats", headers=headers)
|
# requests.put("https://api.github.com/user/starred/anmol098/waka-readme-stats", headers=headers)
|
||||||
|
|
||||||
|
|
||||||
def decode_readme(data: str):
|
def decode_readme(data: str):
|
||||||
'''Decode the contents of old readme'''
|
'''Decode the contents of old readme'''
|
||||||
|
|||||||
Reference in New Issue
Block a user