Skip to content

Instantly share code, notes, and snippets.

@asenchi
Created March 20, 2017 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asenchi/8a27ce1181f12b2022d5ab3eca2ed567 to your computer and use it in GitHub Desktop.
Save asenchi/8a27ce1181f12b2022d5ab3eca2ed567 to your computer and use it in GitHub Desktop.
• hvalvatn:~ asenchi$ vim bin/old.py
• hvalvatn:~ asenchi$ python bin/old.py
Traceback (most recent call last):
File "bin/old.py", line 21, in <module>
print main(sys.argv[1])
IndexError: list index out of range
• hvalvatn:~ asenchi$ python bin/old.py 07-22-1979
Traceback (most recent call last):
File "bin/old.py", line 21, in <module>
print main(sys.argv[1])
File "bin/old.py", line 12, in main
birthdate = datetime(year, month, day)
ValueError: month must be in 1..12
• hvalvatn:~ asenchi$ python bin/old.py 22-07-1979
Traceback (most recent call last):
File "bin/old.py", line 21, in <module>
print main(sys.argv[1])
File "bin/old.py", line 12, in main
birthdate = datetime(year, month, day)
ValueError: day is out of range for month
• hvalvatn:~ asenchi$ python bin/old.py 1979-07-22
http://musicbrainz.org/search?query=date:1998-05*&type=release&limit=100&method=advanced
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment