Skip to content

Commit

Permalink
fixed var. issues. See release notes.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrJeremyHobbs committed Mar 29, 2019
1 parent 9233f9a commit 1cb6f29
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions RoboReturns.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def main(*args):
# skip header
if config.barcode_column_header != "" and counter == 0:
counter += 1
gui.insert_text(counter, ("n/a", "n/a", "Skipped", "Spreadsheet header."), 'attention')
gui.insert_text(counter, ("n/a", "n/a", "Skipped", "Spreadsheet header."), 'success')
continue

# get item record
Expand Down Expand Up @@ -276,7 +276,12 @@ def insert_text(self, counter, msg, tags):
def save_log(self):
current_date = datetime.datetime.now()
current_date_formatted = current_date.strftime("%Y-%m-%d__%H%M%S")
saved_log = open(f"{config.log_directory}robo_returns_log_{current_date_formatted}.csv", "w", encoding="utf-8", newline='')

try:
saved_log = open(f"{config.log_directory}robo_returns_log_{current_date_formatted}.csv", "w", encoding="utf-8", newline='')
except:
saved_log = open(f"robo_returns_log_{current_date_formatted}.csv", "w", encoding="utf-8", newline='')

children = self.tree.get_children()
for child in children:
list = self.tree.item(child)["values"]
Expand Down
2 changes: 1 addition & 1 deletion config.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[misc]
version=3.0
version=3.1
delete_barcode_file=true

[apikey]
Expand Down

0 comments on commit 1cb6f29

Please sign in to comment.