Skip to content

Commit

Permalink
Functions: handle IOError in get_pid function
Browse files Browse the repository at this point in the history
  • Loading branch information
infirit committed Jul 16, 2015
1 parent 7fa19b1 commit 3ce97e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blueman/Functions.py
Expand Up @@ -295,7 +295,7 @@ def get_pid(lockfile):
try:
with open(lockfile, "r") as f:
return int(f.readline())
except ValueError:
except (ValueError, IOError):
pass

def is_running(name, pid):
Expand Down

0 comments on commit 3ce97e9

Please sign in to comment.