Exception '<' not supported between instances of 'str' and 'int'
forthcomadmin opened this issue · 2 comments
forthcomadmin commented
When running as:
fs = Filesplit()
fs.split(file=in_file, split_size=args.split_size, output_dir=args.destination, newline=True, include_header=True)
this exception is thrown. Is this a known issue? Is it related to file contents?
ram-jayapalan commented
Please check the datatype of the size value you are passing. Looks like you are passing as string instead of integer.
forthcomadmin commented
Hi - apologies, that is correct, I have now cast to an int and working correctly.
Michael Scott|Head of Technology
***@***.***
Please note
My email address has changed and is now ***@***.***
The information in this email is confidential and legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or action taken or omitted to be taken in reliance on it, is prohibited and unlawful. For-Sight is a product of For-Sight Software Limited. When addressed to our clients any opinions or advice contained in this email are subject to For-Sight Software Limited Terms and Conditions.
From: Ram Prakash Jayapalan ***@***.***>
Sent: 01 March 2022 14:42
To: ram-jayapalan/filesplit ***@***.***>
Cc: Michael Scott ***@***.***>; Author ***@***.***>
Subject: Re: [ram-jayapalan/filesplit] Exception '<' not supported between instances of 'str' and 'int' (Issue #21)
Please check the datatype of the size value you are passing. Looks like you are passing as string instead of integer.
—
Reply to this email directly, view it on GitHub<#21 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ASEWAFSEZ45F26M2YVJGXF3U5YUE3ANCNFSM5PUE2BZA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID: ***@***.***>