Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
Fix UnboundLocalError: local variable 'version' referenced before assignment
  • Loading branch information
marek-sezemsky committed Feb 3, 2015
1 parent 98944ab commit 61f8156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slave/buildslave/__init__.py
Expand Up @@ -50,7 +50,7 @@ def getVersion(init_file):
v = VERSION_MATCH.search(out)
if v:
version = v.group(1)
return version
return version
except OSError:
pass
return "latest"
Expand Down

0 comments on commit 61f8156

Please sign in to comment.