We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16fb46e commit 96d3a6dCopy full SHA for 96d3a6d
2 files changed
CHANGES
@@ -1,3 +1,10 @@
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
8
osdf-python 0.6
9
10
* Added method to retrieve all auxiliary schemas.
bin/osdf
@@ -17,6 +17,10 @@ def parse_config():
17
home = os.path.expanduser("~")
18
config_file = os.path.join(home, ".osdf")
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
24
perms = oct(os.stat(config_file).st_mode & 0777)
25
if perms != '0400':
26
msg = "Permissions on config {} are too loose. Should be 0400."
0 commit comments