File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 1
1
[metadata]
2
2
name = refind_btrfs
3
- version = 0.5.5
3
+ version = 0.5.6
4
4
description = Generate rEFInd manual boot stanzas from Btrfs snapshots
5
5
long_description = file: README.md
6
6
keywords = rEFInd, btrfs
Original file line number Diff line number Diff line change 28
28
29
29
setuptools .setup (
30
30
name = "refind-btrfs" ,
31
- version = "0.5.5 " ,
31
+ version = "0.5.6 " ,
32
32
author = "Luka Žaja" ,
33
33
author_email = "luka.zaja@protonmail.com" ,
34
34
description = "Generate rEFInd manual boot stanzas from Btrfs snapshots" ,
Original file line number Diff line number Diff line change 23
23
24
24
import queue
25
25
26
+ from inspect import signature
27
+ from typing import Any
28
+
26
29
from injector import inject
27
30
28
31
from refind_btrfs .common import CheckableObserver , constants
@@ -42,7 +45,14 @@ def run(self) -> None:
42
45
43
46
while self .should_keep_running ():
44
47
try :
45
- self .dispatch_events (self .event_queue )
48
+ arguments : list [Any ] = [self .event_queue ]
49
+ dispatch_events_signature = signature (self .dispatch_events )
50
+ parameters = dispatch_events_signature .parameters
51
+
52
+ if "timeout" in parameters :
53
+ arguments .append (self .timeout )
54
+
55
+ self .dispatch_events (* arguments )
46
56
except queue .Empty :
47
57
continue
48
58
except SnapshotMountedAsRootError as e :
You can’t perform that action at this time.
0 commit comments