Skip to content

Commit cc62afd

Browse files
committed
Add default author email to setup script
- Adds default@example.com as default value for AUTHOR_EMAIL variable in ./setup.py. - Fixes a Pylance argument error that questions the possibility of os.getenv() function returning an empty value, contrary to the accepted data types of setup(author_email), which is just strings. - Fixes #10.
1 parent 83b4b48 commit cc62afd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def read_requirements():
1010

1111
# Load environment variables
1212
load_dotenv()
13-
AUTHOR_EMAIL = os.getenv('AUTHOR_EMAIL')
13+
AUTHOR_EMAIL = os.getenv('AUTHOR_EMAIL', "default@example.com")
1414

1515
setup(
1616
name='YouTubeWikiBot',

0 commit comments

Comments
 (0)