Skip to content

Commit

Permalink
added debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Forrest Beck committed Mar 7, 2024
1 parent a79e8a1 commit 27d34d1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.gitignore
build
.idea
*.log
__pycache__
venv
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.53
1.53.1
6 changes: 4 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -848,8 +848,9 @@ def export_charge_balance(self):
panda_data = pandas.DataFrame(saleline_export_data)
panda_data.to_excel(writer, sheet_name='Sheet1', header=False, index=False)
writer.save()
except:
except Exception as error:
self.debug_append_log("Failed to format XLSX SaleLine data.", "window,info")
self.debug_append_log(error, "debug")
return None

# !! Account Balance Export !!
Expand Down Expand Up @@ -906,8 +907,9 @@ def export_charge_balance(self):
panda_data = pandas.DataFrame(export_data)
panda_data.to_excel(writer, sheet_name='Sheet1', header=False, index=False)
writer.save()
except:
except Exception as error:
self.debug_append_log("Failed to export XLSX balance data.", "window,info")
self.debug_append_log(error, "debug")
return None

# Finish of progress bar
Expand Down

0 comments on commit 27d34d1

Please sign in to comment.