Skip to content

Commit

Permalink
if not /etc/issue then handle unknown distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
bretth committed Nov 21, 2010
1 parent 72f482d commit 9488642
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions woven/ubuntu.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ def ubuntu_version():
"""
Get the version # of Ubuntu as a float
"""
if not exists('/etc/issue'): return 'UNKNOWN',0
version = run('cat /etc/issue').split(' ')[:2]
try:
version[1] = float(version[1])
Expand Down

0 comments on commit 9488642

Please sign in to comment.