Skip to content

Commit

Permalink
Fix exception when syncing modified description
Browse files Browse the repository at this point in the history
  • Loading branch information
rdb committed Nov 21, 2024
1 parent 2a18e87 commit df285b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "toggl2moneybird"
version = "0.5.1"
version = "0.5.2"
authors = [
{name = "rdb", email = "[email protected]"},
]
Expand Down
2 changes: 1 addition & 1 deletion toggl2moneybird/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def mb_entry_data_table(entries_data, mb_admin, **kwargs):
desc = entry.description
project_name = entry.project.name if entry.project else ''

if data and data['billable']:
if data and data.get('billable'):
if desc:
desc = '💰 ' + desc
else:
Expand Down

0 comments on commit df285b9

Please sign in to comment.