projects
/
ais.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added error information on assert failure
[ais.git]
/
bin
/
ntools.py
diff --git
a/bin/ntools.py
b/bin/ntools.py
index 61085dbb831c0e18b9bec8f4088fea4272b4bd24..3236319f676c1cb6c06b5c1692991be2a04b9409 100644
(file)
--- a/
bin/ntools.py
+++ b/
bin/ntools.py
@@
-59,7
+59,7
@@
def strmmsi_to_mmsi(strmmsi):
if strmmsi.isdigit():
return int(strmmsi)
else:
- assert strmmsi[3:5] == 'MI'
+ assert strmmsi[3:5] == 'MI'
, 'Invalid strmmsi ' + strmmsi
strmmsi = strmmsi[:3]+'00'+strmmsi[5:]
return int('-'+strmmsi)