NGPIris 5.4.2.dev1__py3-none-any.whl → 5.4.2.dev2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
NGPIris/hcp/hcp.py CHANGED
@@ -507,26 +507,20 @@ class HCPHandler:
507
507
  unit_scale = True,
508
508
  desc = local_file_path
509
509
  ) as pbar:
510
- try:
511
- self.s3_client.upload_file(
512
- Filename = local_file_path,
513
- Bucket = self.bucket_name,
514
- Key = key,
515
- Config = self.transfer_config,
516
- Callback = lambda bytes_transferred : pbar.update(bytes_transferred)
517
- )
518
- except Exception as e:
519
- print("Upload failed:", e)
520
- else:
521
- try:
522
510
  self.s3_client.upload_file(
523
511
  Filename = local_file_path,
524
512
  Bucket = self.bucket_name,
525
513
  Key = key,
526
514
  Config = self.transfer_config,
515
+ Callback = lambda bytes_transferred : pbar.update(bytes_transferred)
527
516
  )
528
- except Exception as e:
529
- print("Upload failed:", e)
517
+ else:
518
+ self.s3_client.upload_file(
519
+ Filename = local_file_path,
520
+ Bucket = self.bucket_name,
521
+ Key = key,
522
+ Config = self.transfer_config,
523
+ )
530
524
 
531
525
 
532
526
  @check_mounted
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: NGPIris
3
- Version: 5.4.2.dev1
3
+ Version: 5.4.2.dev2
4
4
  Author-email: Erik Brink <erik.brink@gu.se>, Isak Sylvin <isak.sylvin@gu.se>
5
5
  Description-Content-Type: text/markdown
6
6
  License-File: LICENSE
@@ -6,16 +6,16 @@ NGPIris/hci/hci.py,sha256=-7RBWPGqlINVNsl-GbjuXkcLdIF5cs4cu3OFt2FJi1E,4321
6
6
  NGPIris/hci/helpers.py,sha256=THZt9ItmEsEiuvB1v99orAx1oOMgBdGR62PQyOre5yo,2592
7
7
  NGPIris/hcp/__init__.py,sha256=yMDW3WpxsU89GNcBJ3ApeGHOmWvisfuuAsZxwlKWnpw,38
8
8
  NGPIris/hcp/exceptions.py,sha256=24irbs3JMWaVOM_gf4ByR1hfYPpEP1eXPgHvq77uuqU,361
9
- NGPIris/hcp/hcp.py,sha256=Re_XR0lpzgcW8K1NEeIrlEtfdxoFfHl-DpKWFDlublk,30896
9
+ NGPIris/hcp/hcp.py,sha256=ZGUSrpo9hLHrKWIBXstdUxKm6SZrmzqq4G7PWLmNamo,30618
10
10
  NGPIris/hcp/helpers.py,sha256=SRHX-B6TSDogK7Mz2co7VkzHtZdtMaMeH-_NoDWEDh8,1406
11
11
  NGPIris/hcp/statistics.py,sha256=8VgRC-7hWQOCRWwoKk4NHCtGTdY_4C2iHcAHEXKJ0kM,817
12
12
  NGPIris/parse_credentials/__init__.py,sha256=O9uq_F9uOtuW7giW-t10KV4VmTgfkvgaBEwQU43Sf-w,57
13
13
  NGPIris/parse_credentials/parse_credentials.py,sha256=E1NzQCMvjOa2mGLBkEYshZomNSxfSCkoc_iUhUfpBEM,2106
14
14
  NGPIris/utils/__init__.py,sha256=yPCEc1-_7r01dZ-31EKiA7Jova7ztX7XXuU95IKmKX8,59
15
15
  NGPIris/utils/utils.py,sha256=m9qwLuOoiqVNRy7B4raYNFJkigL_wE--PiWhyhVhHII,248
16
- ngpiris-5.4.2.dev1.dist-info/licenses/LICENSE,sha256=ZA2Q9u5AEkH_YoNNDRsz-DBJ6ZuL_foE7RsKFjXd4-c,18093
17
- ngpiris-5.4.2.dev1.dist-info/METADATA,sha256=UxqEaarwZI1o72gELEND1nT735C00wAn4XHkmaneORI,7102
18
- ngpiris-5.4.2.dev1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
19
- ngpiris-5.4.2.dev1.dist-info/entry_points.txt,sha256=t8ADhe3ovPm9tW3XDZq1_vKmfHY98Ei_o6WioJobNzU,117
20
- ngpiris-5.4.2.dev1.dist-info/top_level.txt,sha256=954WCuIJkle_SMtr7MNPapiiLLAFhlKbcz6Bp89-2V0,8
21
- ngpiris-5.4.2.dev1.dist-info/RECORD,,
16
+ ngpiris-5.4.2.dev2.dist-info/licenses/LICENSE,sha256=ZA2Q9u5AEkH_YoNNDRsz-DBJ6ZuL_foE7RsKFjXd4-c,18093
17
+ ngpiris-5.4.2.dev2.dist-info/METADATA,sha256=rhidbuhMsAiZwtK0MKjzIXsrmYRaspHF8tw26Yg0_bA,7102
18
+ ngpiris-5.4.2.dev2.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
19
+ ngpiris-5.4.2.dev2.dist-info/entry_points.txt,sha256=t8ADhe3ovPm9tW3XDZq1_vKmfHY98Ei_o6WioJobNzU,117
20
+ ngpiris-5.4.2.dev2.dist-info/top_level.txt,sha256=954WCuIJkle_SMtr7MNPapiiLLAFhlKbcz6Bp89-2V0,8
21
+ ngpiris-5.4.2.dev2.dist-info/RECORD,,