File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change
1
+ osdf-python 0.6.1
2
+
3
+ * Better error message when an invocation is attempted without
4
+ having run 'init' first.
5
+
6
+ - Victor <
[email protected] > Sat, 17 Dec 2016 10:30:00 -0400
7
+
1
8
osdf-python 0.6
2
9
3
10
* Added method to retrieve all auxiliary schemas.
Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ def parse_config():
17
17
home = os .path .expanduser ("~" )
18
18
config_file = os .path .join (home , ".osdf" )
19
19
20
+ if not os .path .isfile (config_file ):
21
+ sys .stderr .write ("No configuration file. Please execute 'osdf init'.\n " )
22
+ sys .exit (1 )
23
+
20
24
perms = oct (os .stat (config_file ).st_mode & 0777 )
21
25
if perms != '0400' :
22
26
msg = "Permissions on config {} are too loose. Should be 0400."
You can’t perform that action at this time.
0 commit comments