Skip to content

Commit

Permalink
Fixed a bug that allowed space-only subjects.
Browse files Browse the repository at this point in the history
  • Loading branch information
n8henrie committed Apr 25, 2013
1 parent 746daaf commit 81c274d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions icsconverter.py
Expand Up @@ -47,9 +47,9 @@ def CleanSpaces(csv_dict):
# function gets rid of trailing spaces.
try:
if isdir(expanduser("~/Desktop")):
reader_builder = list(csv.DictReader(open(easygui.fileopenbox(msg="Please select the .csv file to be converted to .ics", title="", default=expanduser("~/Desktop/"), filetypes=["*.csv"]), 'rb')))
reader_builder = list(csv.DictReader(open(easygui.fileopenbox(msg="Please select the .csv file to be converted to .ics", title="", default=expanduser("~/Desktop/"), filetypes=["*.csv"]), 'rb'), skipinitialspace = True))
else:
reader_builder = list(csv.DictReader(open(easygui.fileopenbox(msg="Please select the .csv file to be converted to .ics", title="", default=expanduser("~/"), filetypes=["*.csv"]), 'rb')))
reader_builder = list(csv.DictReader(open(easygui.fileopenbox(msg="Please select the .csv file to be converted to .ics", title="", default=expanduser("~/"), filetypes=["*.csv"]), 'rb'), skipinitialspace = True))
except:
easygui.msgbox('Looks like there was an error opening the file, didn\'t even make it to the conversion part. Sorry!')
exit(1)
Expand Down

0 comments on commit 81c274d

Please sign in to comment.