File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 12
12
import miniirc , requests , traceback # type: ignore
13
13
14
14
15
- ver = (0 , 0 , 7 )
15
+ ver = (0 , 0 , 8 )
16
16
__version__ = '.' .join (map (str , ver ))
17
17
18
18
@@ -495,6 +495,14 @@ def _main(self) -> None:
495
495
if self .debug_file :
496
496
self .debug (json .dumps (res , indent = 4 ))
497
497
if 'error' in res :
498
+ # TODO: Use self.debug or something
499
+ print (f'[miniirc_matrix] Error returned when trying to '
500
+ f'fetch /sync: { res ["error" ]!r} ' )
501
+
502
+ if self .persist :
503
+ self .debug ('Trying again in 15 seconds...' )
504
+ time .sleep (15 )
505
+ continue
498
506
break
499
507
next_batch = res ['next_batch' ]
500
508
if 'rooms' in res :
Original file line number Diff line number Diff line change 5
5
6
6
setup (
7
7
name = 'miniirc_matrix' ,
8
- version = '0.0.7 ' ,
8
+ version = '0.0.8 ' ,
9
9
py_modules = ['miniirc_matrix' ],
10
10
author = 'luk3yx' ,
11
11
description = 'A Matrix wrapper for miniirc.' ,
You can’t perform that action at this time.
0 commit comments