We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecc4824 commit b095916Copy full SHA for b095916
asmdisks.spec
@@ -1,6 +1,6 @@
1
Name: asmdisks
2
Summary: Replacement for Oracle ASMLib using UDEV
3
-Version: 2.0.1
+Version: 2.0.2
4
Release: 1%{?dtap}
5
BuildArch: noarch
6
License: GPLv3+
src/lib/rulesfile.py
@@ -77,9 +77,12 @@ def save(self):
77
f.write(footer)
78
79
def dump(self):
80
- with open(self.path) as f:
81
- data = f.read()
82
- print(data)
+ try:
+ with open(self.path) as f:
+ data = f.read()
83
+ print(data)
84
+ except FileNotFoundError:
85
+ raise ValueError(f"Rules file does not exist (yet) - {self.path}")
86
87
@staticmethod
88
def reload():
0 commit comments