summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-12-23 02:21:06 +0100
committerhut <hut@lavabit.com>2009-12-23 02:21:06 +0100
commitc2a890822a9d38b86695c79b4bc7c25bd0a80c7e (patch)
tree085803b63938387fe9178bf43e12083c5fca7ea9
parent5645f266e4fa120d28d1fabb320483dd2ea6b892 (diff)
downloadranger-c2a890822a9d38b86695c79b4bc7c25bd0a80c7e.tar.gz
handled exception found in the unit tests
-rw-r--r--ranger/fsobject/fsobject.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/fsobject/fsobject.py b/ranger/fsobject/fsobject.py
index c0ab6a9c..7899e5f5 100644
--- a/ranger/fsobject/fsobject.py
+++ b/ranger/fsobject/fsobject.py
@@ -194,7 +194,10 @@ class FileSystemObject(MimeTypeAware, FileManagerAware):
 		if self.load_once(): return True
 
 		import os
-		real_mtime = os.stat(self.path).st_mtime
+		try:
+			real_mtime = os.stat(self.path).st_mtime
+		except OSError:
+			return False
 		cached_mtime = self.stat.st_mtime
 
 		if real_mtime != cached_mtime:
s='oid'>e6cbe9c ^
d05d09b ^
aa53e39 ^
2e38296 ^
39af3c2 ^


e6cbe9c ^
dc5c070 ^
f17e898 ^
e6cbe9c ^
f6128a1 ^
e7300e0 ^






b439892 ^
caf5a16 ^
901b3ed ^
1076f2b

901b3ed ^
0c3544d ^
2b35fae ^

7151bf8 ^
dc39ae8 ^


2b35fae ^
3e06ede ^
cdbc84b ^
338c083 ^
292ccc4 ^
d4b7a9a ^
10885d3 ^
1836b67 ^
ee8fb0c ^
7ab8c87 ^
1836b67 ^
ee8fb0c ^
7ab8c87 ^
2b35fae ^
72655f0 ^
ee8fb0c ^
df74b26 ^
dc39ae8 ^
72655f0 ^
a9e145f ^








5bc4db0 ^
a9e145f ^

f22d047 ^


12ea925 ^





7b4c512 ^
12ea925 ^

20cd336 ^
12ea925 ^
39af3c2 ^
ee8fb0c ^
7ab8c87 ^
72655f0 ^
ee8fb0c ^
7ab8c87 ^
3af6434 ^
a355782 ^





d05d09b ^











ee8fb0c ^
5bc4db0 ^
1549faf ^
ee8fb0c ^
d05d09b ^
42fd392 ^
ee8fb0c ^
5bc4db0 ^
8dc8605 ^
ee8fb0c ^
5bc4db0 ^
1549faf ^
ee8fb0c ^
7ab8c87 ^
daae3bb ^
ee8fb0c ^
5bc4db0 ^
4bb89e2 ^
ee8fb0c ^
7ab8c87 ^
2b35fae ^
0c3544d ^
ee8fb0c ^
d05d09b ^
0e5c819 ^
ee8fb0c ^
5f55af4 ^
4bd0d33 ^
ee8fb0c ^
d05d09b ^
0c3544d ^
7ab8c87 ^
dc5c070 ^
7e98db2 ^

bced907 ^
c8f96b5 ^

cba6b21 ^










124866e ^
d05d09b ^
124866e ^





1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169