Skip to content

Commit

Permalink
polish
Browse files Browse the repository at this point in the history
  • Loading branch information
utkuufuk committed Oct 16, 2019
1 parent 6a23d92 commit c66ecea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions budget/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def getMonthlySheetId(date, sheetIds):
except KeyError:
raiseInvalidMonthError(month)

# gets a file that has lines and inputs them into the monthly budget
# parses multiple transaction commands from file
def parseTransactionsFile(filename):
try:
with open(filename, "r") as f:
Expand Down Expand Up @@ -237,7 +237,7 @@ def main():
if command == 'insert':
lines = parseTransactionsFile(param)
for line in lines:
print("\nProcessing command: {0} \"{1}\"".format(line[0], line[1]))
print('\nProcessing command: {0} "{1}"'.format(line[0], line[1]))
try:
transaction, noExplicitDate = parseTransaction(line[1])
if noExplicitDate is True:
Expand All @@ -250,7 +250,6 @@ def main():
insertTransaction(transaction, service, line[0], monthlySheetId, summary.title)
except UserWarning as e:
print("Warning: {0}".format(e))
continue
return
if command == "edit":
subcommand = param[0]
Expand Down

0 comments on commit c66ecea

Please sign in to comment.