[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r14389 - gauger
From: |
gnunet |
Subject: |
[GNUnet-SVN] r14389 - gauger |
Date: |
Fri, 11 Feb 2011 04:37:45 +0100 |
Author: bartpolot
Date: 2011-02-11 04:37:45 +0100 (Fri, 11 Feb 2011)
New Revision: 14389
Modified:
gauger/gauger.py
Log:
Fixed problem with creating files
Modified: gauger/gauger.py
===================================================================
--- gauger/gauger.py 2011-02-11 03:30:22 UTC (rev 14388)
+++ gauger/gauger.py 2011-02-11 03:37:45 UTC (rev 14389)
@@ -118,7 +118,10 @@
print "Not a directory or not writable: ", hostname
continue
- datafile = open(hostname + '/' + dataname, "r+")
+ try:
+ datafile = open(hostname + '/' + dataname, "r+")
+ except IOError:
+ datafile = open(hostname + '/' + dataname, "w+")
add_data_to_file(datafile, revision, result);
datafile.close()
updateplot(hostname, dataname)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r14389 - gauger,
gnunet <=