git://git.onelab.eu
/
pyplnet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
06b336c
)
If /sys/class/net doesn't exist, use an empty list.
author
Daniel Hokka Zakrisson
<dhokka@cs.princeton.edu>
Sat, 13 Dec 2008 19:14:22 +0000
(19:14 +0000)
committer
Daniel Hokka Zakrisson
<dhokka@cs.princeton.edu>
Sat, 13 Dec 2008 19:14:22 +0000
(19:14 +0000)
sioc.py
patch
|
blob
|
history
diff --git
a/sioc.py
b/sioc.py
index
1bb0095
..
fd657ef
100644
(file)
--- a/
sioc.py
+++ b/
sioc.py
@@
-33,7
+33,10
@@
def gifaddr(interface):
return None
def gifconf():
- interfaces = os.listdir("/sys/class/net")
+ try:
+ interfaces = os.listdir("/sys/class/net")
+ except:
+ interfaces = []
s = None
ret = {}
try: