From 9c0fdc6ac177f94916c30cdc88116d149c5abeb5 Mon Sep 17 00:00:00 2001 From: Anmol Date: Tue, 4 Aug 2020 21:31:26 +0530 Subject: [PATCH] FIX: Fixes #41 --- main.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 880d9c2..3e7e9b9 100644 --- a/main.py +++ b/main.py @@ -16,9 +16,9 @@ import traceback import humanize from urllib.parse import quote -# from dotenv import load_dotenv -# -# load_dotenv() +from dotenv import load_dotenv + +load_dotenv() START_COMMENT = '' END_COMMENT = '' @@ -404,6 +404,8 @@ def get_short_info(github): is_hireable = user_info.hireable public_repo = user_info.public_repos private_repo = user_info.owned_private_repos + if private_repo is None: + private_repo = 0 if is_hireable: string += "> 💼 Opted to Hire\n > \n" else: @@ -414,7 +416,6 @@ def get_short_info(github): string += '> 🔑 ' + str(private_repo) + " Owned Private Repositor" string += 'ies \n\n' if private_repo > 1 else 'y \n > \n' - print(string) return string