Skip to content

Commit 96d3a6d

Browse files
author
vfelix
committed
Version 0.6.1
1 parent 16fb46e commit 96d3a6d

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

CHANGES

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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 <[email protected]> Sat, 17 Dec 2016 10:30:00 -0400
7+
18
osdf-python 0.6
29

310
* Added method to retrieve all auxiliary schemas.

bin/osdf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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."

0 commit comments

Comments
 (0)