rclone-api 1.0.63__py2.py3-none-any.whl → 1.0.64__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
rclone_api/diff.py CHANGED
@@ -1,4 +1,3 @@
1
- import warnings
2
1
  from dataclasses import dataclass
3
2
  from enum import Enum
4
3
  from queue import Queue
@@ -72,7 +71,6 @@ def _async_diff_stream_from_running_process(
72
71
  ) -> None:
73
72
  count = 0
74
73
  first_few_lines: list[str] = []
75
- check = True
76
74
  try:
77
75
  assert running_process.stdout is not None
78
76
  n_max = 10
@@ -98,16 +96,15 @@ def _async_diff_stream_from_running_process(
98
96
  except KeyboardInterrupt:
99
97
  import _thread
100
98
 
101
- check = False
102
-
103
99
  print("KeyboardInterrupt")
104
100
  output.put(None)
105
101
  _thread.interrupt_main()
106
- if count == 0 and check:
107
- first_lines_str = "\n".join(first_few_lines)
108
- warning_msg = f"No output from rclone check, first few lines: {first_lines_str}"
109
- warnings.warn(warning_msg)
110
- raise ValueError(warning_msg)
102
+ except Exception as e:
103
+ import _thread
104
+
105
+ print(f"Error: {e}")
106
+ output.put(None)
107
+ _thread.interrupt_main()
111
108
 
112
109
 
113
110
  def diff_stream_from_running_process(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: rclone_api
3
- Version: 1.0.63
3
+ Version: 1.0.64
4
4
  Summary: rclone api in python
5
5
  Home-page: https://github.com/zackees/rclone-api
6
6
  Maintainer: Zachary Vorhies
@@ -4,7 +4,7 @@ rclone_api/completed_process.py,sha256=Pp-hXnLgej0IGO5ee9Fmx64dGzIofbQFEUyXdFCvO
4
4
  rclone_api/config.py,sha256=tP6cU9DnCCEIRc_KP9HPur1jFLLg2QGFSxNwFm6_MVw,118
5
5
  rclone_api/convert.py,sha256=Mx9Qo7zhkOedJd8LdhPvNGHp8znJzOk4f_2KWnoGc78,1012
6
6
  rclone_api/deprecated.py,sha256=qWKpnZdYcBK7YQZKuVoWWXDwi-uqiAtbjgPcci_efow,590
7
- rclone_api/diff.py,sha256=36sXtAFDPoCVUN7E46OB2FywkaFauffsg2e9VsUMGhU,4200
7
+ rclone_api/diff.py,sha256=HVt246BMXR6jrc_RgywC5HLbdbELls1OLrse6kcT-Ak,4038
8
8
  rclone_api/dir.py,sha256=2-PFaDpjEs28z82DQ-TyaCgrm_OgpwlkwfTnx1-Wwpk,2194
9
9
  rclone_api/dir_listing.py,sha256=9Qqf2SUswrOEkyqmaH23V51I18X6ePiXb9B1vUwRF5o,1571
10
10
  rclone_api/exec.py,sha256=1ovvaMXDEfLiT7BrYZyE85u_yFhEUwUNW3jPOzqknR8,1023
@@ -19,9 +19,9 @@ rclone_api/util.py,sha256=_cvmHcJPRl2yXw4zgZiop3z-riA_8Ek6S5NDPw8cqSY,4198
19
19
  rclone_api/walk.py,sha256=UaNOE3ICd8k5ouSFZvkVEH4r2GnnrD9TxfwkFcQnayo,3170
20
20
  rclone_api/assets/example.txt,sha256=lTBovRjiz0_TgtAtbA1C5hNi2ffbqnNPqkKg6UiKCT8,54
21
21
  rclone_api/cmd/list_files.py,sha256=x8FHODEilwKqwdiU1jdkeJbLwOqUkUQuDWPo2u_zpf0,741
22
- rclone_api-1.0.63.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
23
- rclone_api-1.0.63.dist-info/METADATA,sha256=ANXO37GSNloEFw3pzFgME1GwL1F-EiKdNNVqZ1ElV3U,4489
24
- rclone_api-1.0.63.dist-info/WHEEL,sha256=9Hm2OB-j1QcCUq9Jguht7ayGIIZBRTdOXD1qg9cCgPM,109
25
- rclone_api-1.0.63.dist-info/entry_points.txt,sha256=XUoTX3m7CWxdj2VAKhEuO0NMOfX2qf-OcEDFwdyk9ZE,72
26
- rclone_api-1.0.63.dist-info/top_level.txt,sha256=EvZ7uuruUpe9RiUyEp25d1Keq7PWYNT0O_-mr8FCG5g,11
27
- rclone_api-1.0.63.dist-info/RECORD,,
22
+ rclone_api-1.0.64.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
23
+ rclone_api-1.0.64.dist-info/METADATA,sha256=hqE26Ln9Dh4lFN8jtb0hSeYupA242HysZxfEIcNRWMg,4489
24
+ rclone_api-1.0.64.dist-info/WHEEL,sha256=9Hm2OB-j1QcCUq9Jguht7ayGIIZBRTdOXD1qg9cCgPM,109
25
+ rclone_api-1.0.64.dist-info/entry_points.txt,sha256=XUoTX3m7CWxdj2VAKhEuO0NMOfX2qf-OcEDFwdyk9ZE,72
26
+ rclone_api-1.0.64.dist-info/top_level.txt,sha256=EvZ7uuruUpe9RiUyEp25d1Keq7PWYNT0O_-mr8FCG5g,11
27
+ rclone_api-1.0.64.dist-info/RECORD,,