Move readonly exception before try-except block
Move readonly exception before try-except block

and raise exeption, not return int

sergey-dryabzhinsky/dedupsqlfs,sergey-dryabzhinsky/dedupsqlfs,sergey-dryabzhinsky/dedupsqlfs,sergey-dryabzhinsky/dedupsqlfs