Skip to content

Commit

Permalink
Merge pull request #11 from LucienShui/chore/optimize_c_type_transfer…
Browse files Browse the repository at this point in the history
…_error_message

Optimize c type transfer's error message
  • Loading branch information
LucienShui authored Oct 20, 2020
2 parents 50a7ac3 + d1c78dd commit 292c21c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions flow_network/__version__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
__title__ = 'flow-network'
__description__ = 'Flow Network C++ Implementation'
__url__ = 'https://github.com/LucienShui/flow-network'
__version__ = '0.1.2'
__build__ = 0x000102
__version__ = '0.1.3'
__build__ = 0x000103
__author__ = 'Lucien Shui'
__author_email__ = 'lucien@lucien.ink'
__license__ = 'Apache 2.0'
Expand Down
2 changes: 1 addition & 1 deletion flow_network/util/c_type_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ def c_type_transfer(data: [int, float, list]) -> [ctypes.c_int, ctypes.c_double]

return result

raise RuntimeError('Unsupported type')
raise RuntimeError(f'Unsupported type {data_type}')

0 comments on commit 292c21c

Please sign in to comment.