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 <victor73@github.com> Sat, 17 Dec 2016 10:30:00 -0400
7+
18osdf-python 0.6
29
310 * Added method to retrieve all auxiliary schemas.
Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ def parse_config():
1717 home = os .path .expanduser ("~" )
1818 config_file = os .path .join (home , ".osdf" )
1919
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+
2024 perms = oct (os .stat (config_file ).st_mode & 0777 )
2125 if perms != '0400' :
2226 msg = "Permissions on config {} are too loose. Should be 0400."
You can’t perform that action at this time.
0 commit comments