Repository: learningequality/kolibri

Issue:
Simple Typo: 'occured' 
Simple typon 'occured'  instead of 'occurred' 

https://github.com/learningequality/kolibri/blob/d4a672621d05028b28e9ea93d02a3f834932a4ca/kolibri/core/content/management/commands/importcontent.py#L176-L178

https://github.com/learningequality/kolibri/blob/bb439740e33f1cf0270d01500a68e0b84c90d563/kolibri/core/content/management/commands/importchannel.py#L128


Discussion:

Resolving patch:
diff --git a/kolibri/core/content/management/commands/importchannel.py b/kolibri/core/content/management/commands/importchannel.py
--- a/kolibri/core/content/management/commands/importchannel.py
+++ b/kolibri/core/content/management/commands/importchannel.py
@@ -125,14 +125,14 @@ def _start_file_transfer(self, filetransfer, channel_id, dest):
                     try:
                         os.remove(dest)
                     except IOError as e:
-                        logging.error("Tried to remove {}, but exception {} occured.".format(
+                        logging.error("Tried to remove {}, but exception {} occurred.".format(
                             dest, e))
                         pass
                     self.cancel()
                 return True
 
         except Exception as e:
-            logging.error("An error occured during channel import: {}".format(e))
+            logging.error("An error occurred during channel import: {}".format(e))
             retry_import(e, skip_404=False)
 
             logging.info('Waiting for 30 seconds before retrying import: {}\n'.format(
diff --git a/kolibri/core/content/management/commands/importcontent.py b/kolibri/core/content/management/commands/importcontent.py
--- a/kolibri/core/content/management/commands/importcontent.py
+++ b/kolibri/core/content/management/commands/importcontent.py
@@ -173,7 +173,7 @@ def _transfer(self, method, channel_id, path=None, node_ids=None, exclude_node_i
 
             if number_of_skipped_files > 0:
                 logger.warning(
-                    "{} files are skipped, because errors occured during the import.".format(
+                    "{} files are skipped, because errors occurred during the import.".format(
                         number_of_skipped_files))
 
             if exception:
@@ -203,7 +203,7 @@ def _start_file_transfer(self, f, filetransfer, overall_progress_update):
                 # file is corrupted. Skip this file.
                 if filetransfer.total_size < f.file_size:
                     e = "File {} is corrupted.".format(filetransfer.source)
-                    logger.error("An error occured during content import: {}".format(e))
+                    logger.error("An error occurred during content import: {}".format(e))
                     overall_progress_update(f.file_size)
                     return True, 1
 
@@ -217,7 +217,7 @@ def _start_file_transfer(self, f, filetransfer, overall_progress_update):
             return True, 2
 
         except Exception as e:
-            logger.error("An error occured during content import: {}".format(e))
+            logger.error("An error occurred during content import: {}".format(e))
             retry = import_export_content.retry_import(e, skip_404=True)
 
             if retry:


Test patch: