|
|
@@ -111,9 +111,7 @@ class NilmDB(object): |
|
|
|
try: |
|
|
|
os.makedirs(self.basepath) |
|
|
|
except OSError as e: |
|
|
|
if e.errno != errno.EEXIST: # pragma: no cover |
|
|
|
# (no coverage, because it's hard to trigger this case |
|
|
|
# if tests are run as root) |
|
|
|
if e.errno != errno.EEXIST: |
|
|
|
raise IOError("can't create tree " + self.basepath) |
|
|
|
|
|
|
|
# Our data goes inside it |
|
|
|