Commit 16bc4791 authored by Mygod's avatar Mygod

Catch more exceptions

parent e04588ce
...@@ -431,7 +431,7 @@ class ProfilesFragment : ToolbarFragment(), Toolbar.OnMenuItemClickListener { ...@@ -431,7 +431,7 @@ class ProfilesFragment : ToolbarFragment(), Toolbar.OnMenuItemClickListener {
ProfileManager.createProfile(it) ProfileManager.createProfile(it)
success = true success = true
} }
} catch (e: IOException) { } catch (e: Exception) {
printLog(e) printLog(e)
} }
activity.snackbar().setText(if (success) R.string.action_import_msg else R.string.action_import_err) activity.snackbar().setText(if (success) R.string.action_import_msg else R.string.action_import_err)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment