Skip to content

Commit

Permalink
no git tag exception
Browse files Browse the repository at this point in the history
  • Loading branch information
MaelREBOUX authored and Gustry committed Aug 1, 2022
1 parent 93b0fdd commit a7e800d
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions cadastre/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,14 @@ def next_git_tag():

def set_window_title() -> str:
""" Set the window title if on a dev version. """
version = pluginMetadata('cadastre', 'version')
if version != 'master':
return ''
try:
version = pluginMetadata('cadastre', 'version')
if version != 'master':
return ''

# return 'branch {}, commit {}, next {}'.format(
# version, current_git_hash(), next_git_tag())
# return 'branch {}, commit {}, next {}'.format(
# version, current_git_hash(), next_git_tag())

return 'next {}'.format(next_git_tag())
return 'next {}'.format(next_git_tag())
except:
return "[no git tag]"

0 comments on commit a7e800d

Please sign in to comment.