[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [stem/master] Note that Config's save() method can raise an IOError



commit b629115033b77bbffcd81240a48774c860dd1eea
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Sun Oct 4 12:03:07 2015 -0700

    Note that Config's save() method can raise an IOError
    
    Oops, seems we forgot to note this. Of course this method can raise IOErrors.
---
 stem/util/conf.py |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/stem/util/conf.py b/stem/util/conf.py
index 6b0efd7..92be685 100644
--- a/stem/util/conf.py
+++ b/stem/util/conf.py
@@ -535,7 +535,9 @@ class Config(object):
 
     :param str path: location to be saved to
 
-    :raises: **ValueError** if no path was provided and we've never been provided one
+    :raises:
+      * **IOError** if we fail to save the file (insufficient permissions, etc)
+      * **ValueError** if no path was provided and we've never been provided one
     """
 
     if path:

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits